update to start with millis reporting

This commit is contained in:
2019-11-27 19:39:06 +01:00
parent c367091adf
commit 629e5017ac
4 changed files with 98 additions and 34 deletions

View File

@@ -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";
}
}