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
accc8d0d
Commit
accc8d0d
authored
Mar 05, 2022
by
Eric Duminil
Browse files
Add Wifi 0 1
parent
c987a3c1
Changes
1
Hide whitespace changes
Inline
Side-by-side
ampel-firmware/ampel-firmware.ino
View file @
accc8d0d
...
...
@@ -160,6 +160,17 @@ void setup()
iotWebConf
.
forceApMode
(
onOff
);
},
F
(
"0/1 (Enables/disables access point)"
));
sensor_console
::
defineIntCommand
(
"wifi"
,
[](
int
onOff
)
{
if
(
onOff
)
{
Serial
.
print
(
F
(
"Enable "
));
iotWebConf
.
goOnLine
();
}
else
{
Serial
.
print
(
F
(
"Disable "
));
iotWebConf
.
goOffLine
();
}
Serial
.
println
(
F
(
"Wifi!"
));
},
F
(
"0/1 (Enables/disables WiFi)"
));
//TODO: Remove fluff
//TODO: Add wifi on/off?
...
...
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