Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
co2ampel
ampel-firmware
Commits
478c4896
Commit
478c4896
authored
Feb 09, 2022
by
Eric Duminil
Browse files
Done
parent
40c139a8
Pipeline
#5774
passed with stage
in 2 minutes and 15 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
ampel-firmware/web_config.cpp
View file @
478c4896
...
...
@@ -14,8 +14,6 @@
#include
<IotWebConf.h>
#include
<IotWebConfOptionalGroup.h>
//TODO: Is there any conflict with SPIFFS/LittleFS?
//TODO: Actually use those parameters
//TODO: Check memory consumption. Disable DEBUG info?
//TODO: Convert all strings to F-strings
...
...
@@ -45,9 +43,8 @@ namespace web_config {
/**
* CO2 sensor
*/
ParameterGroup
co2Params
=
ParameterGroup
(
"co2"
,
"CO2 Sensor"
);
//TODO: Conflict with labels?
ParameterGroup
co2Params
=
ParameterGroup
(
"co2"
,
"CO2 Sensor"
);
//TODO: UIntTParameter?
IntTParameter
<
uint16_t
>
timestepParam
=
Builder
<
IntTParameter
<
uint16_t
>>
(
"timestep"
).
label
(
"Measurement timestep"
).
defaultValue
(
MEASUREMENT_TIMESTEP
).
min
(
2
).
max
(
1800
).
placeholder
(
"[s]"
).
build
();
...
...
@@ -250,10 +247,8 @@ namespace web_config {
//TODO: Add default values for SSID/password
//TODO: Add other params
//TODO: Use HTTP_USER / HTTP_PASSWORD for config
//TODO: Move to own class
//TODO: Remove AP Password config?
//TODO: Save LoRaWAN key if possible?
//FIXME: Why does MQTT fail? (on ESP32)
iotWebConf
->
init
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment