update to start with millis reporting
This commit is contained in:
@@ -6,14 +6,10 @@
|
||||
void newcmd(String cmd) {
|
||||
cmd.toLowerCase();
|
||||
if(cmd.equals("off")) {
|
||||
settings.mode = 0;
|
||||
PRINTLN_SERIAL("Lights off");
|
||||
state.text = "Sonoff switched off";
|
||||
}
|
||||
if(cmd.equals("on")) {
|
||||
settings.mode = 1;
|
||||
PRINTLN_SERIAL("Lights on");
|
||||
state.text = "Sonoff switched off";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user