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
054e32aa
Commit
054e32aa
authored
May 15, 2021
by
Eric Duminil
Browse files
Config setter from console
parent
63f78eea
Changes
1
Hide whitespace changes
Inline
Side-by-side
ampel-firmware/web_config.cpp
View file @
054e32aa
...
...
@@ -71,6 +71,14 @@ namespace web_config {
Serial
.
println
(
F
(
"Done!"
));
},
F
(
"(resets the complete IotWeb config)"
));
sensor_console
::
defineStringCommand
(
"conf"
,
[](
char
*
new_value
)
{
Serial
.
print
(
F
(
"Setting stringParam to "
));
Serial
.
println
(
new_value
);
strncpy
(
config
::
stringParam
.
value
(),
new_value
,
STRING_LEN
);
Serial
.
println
(
F
(
"Done"
));
iotWebConf
->
saveConfig
();
},
F
(
"some_text (config setter)"
));
#if !defined(AMPEL_WIFI)
iotWebConf
->
loadConfig
();
return
;
...
...
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