Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
co2ampel
ampel-firmware
Commits
064a679f
Commit
064a679f
authored
May 16, 2021
by
Eric Duminil
Browse files
Notes
parent
65723925
Changes
1
Hide whitespace changes
Inline
Side-by-side
ampel-firmware/web_config.cpp
View file @
064a679f
...
...
@@ -5,6 +5,9 @@ namespace config {
"stringParam"
).
label
(
"String param"
).
build
();
}
//TODO: Is there any conflict with SPIFFS/LittleFS?
//TODO: Actually use those parameters
namespace
web_config
{
#if defined(ESP8266)
ESP8266WebServer
http
(
80
);
// Create a webserver object that listens for HTTP request on port 80
...
...
@@ -148,6 +151,7 @@ namespace web_config {
sensor_console
::
defineCommand
(
"reset_config"
,
[]()
{
Serial
.
println
(
F
(
"Resetting config..."
));
//TODO: Reset every group
iotWebConf
->
getSystemParameterGroup
()
->
applyDefaultValue
();
iotWebConf
->
saveConfig
();
Serial
.
println
(
F
(
"Done!"
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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