Commit accc8d0d authored by Eric Duminil's avatar Eric Duminil
Browse files

Add Wifi 0 1

parent c987a3c1
......@@ -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?
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment