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
b3332923
Commit
b3332923
authored
May 14, 2021
by
Eric Duminil
Browse files
Trying to reset config
parent
d6dbd593
Changes
1
Hide whitespace changes
Inline
Side-by-side
ampel-firmware/web_server.cpp
View file @
b3332923
...
...
@@ -76,6 +76,13 @@ namespace web_server {
void
initialize
()
{
iotWebConf
.
init
();
sensor_console
::
defineCommand
(
"reset_config"
,
[]()
{
Serial
.
print
(
"Resetting config..."
);
iotWebConf
.
getSystemParameterGroup
()
->
applyDefaultValue
();
iotWebConf
.
saveConfig
();
Serial
.
println
(
"Done!"
);
},
F
(
"(resets the complete IotWeb config)"
));
header_template
=
PSTR
(
"<!doctype html><html lang=en>"
"<head>
\n
"
...
...
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