Skip to content
GitLab
Explore
Projects
Groups
Snippets
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
4 years ago
by
Eric Duminil
Browse files
Options
Download
Email Patches
Plain Diff
Config setter from console
parent
63f78eea
master
develop
experimental/example_for_iotwebconf
senseair_s8
v0.3.0
archive/experimental/save_lora_session
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ampel-firmware/web_config.cpp
+8
-0
ampel-firmware/web_config.cpp
with
8 additions
and
0 deletions
+8
-0
ampel-firmware/web_config.cpp
+
8
-
0
View file @
054e32aa
...
@@ -71,6 +71,14 @@ namespace web_config {
...
@@ -71,6 +71,14 @@ namespace web_config {
Serial
.
println
(
F
(
"Done!"
));
Serial
.
println
(
F
(
"Done!"
));
},
F
(
"(resets the complete IotWeb config)"
));
},
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)
#if !defined(AMPEL_WIFI)
iotWebConf
->
loadConfig
();
iotWebConf
->
loadConfig
();
return
;
return
;
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Explore
Projects
Groups
Snippets