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
782bb3e4
Commit
782bb3e4
authored
Feb 20, 2022
by
Eric Duminil
Browse files
ap 0/1
parent
34c87002
Pipeline
#5883
passed with stage
in 2 minutes and 39 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
ampel-firmware/web_config.cpp
View file @
782bb3e4
...
...
@@ -266,10 +266,15 @@ namespace web_config {
}
//NOTE: Can only work if wifi is on.
sensor_console
::
defineCommand
(
"ap!"
,
[]()
{
Serial
.
println
(
F
(
"Forcing AP mode!"
));
iotWebConf
->
forceApMode
(
true
);
},
F
(
"(Forces access point mode)"
));
sensor_console
::
defineIntCommand
(
"ap"
,
[](
int
onOff
)
{
if
(
onOff
)
{
Serial
.
print
(
F
(
"Enable "
));
}
else
{
Serial
.
print
(
F
(
"Disable "
));
}
Serial
.
println
(
F
(
"AP mode!"
));
iotWebConf
->
forceApMode
(
onOff
);
},
F
(
"0/1 (Enables/disables access point)"
));
iotWebConf
->
setWifiConnectionTimeoutMs
(
1000UL
*
config
::
wifi_timeout
);
...
...
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