Update Shelly1_v2.ino
Double switch fix
This commit is contained in:
parent
f3ec7476b2
commit
5d25eeccaf
@ -78,6 +78,7 @@ void loop() {
|
|||||||
ESP.restart();
|
ESP.restart();
|
||||||
}
|
}
|
||||||
if (buttonActive) {
|
if (buttonActive) {
|
||||||
|
realState = !state;
|
||||||
jsonContent = {};
|
jsonContent = {};
|
||||||
jsonContent["token"] = apiToken;
|
jsonContent["token"] = apiToken;
|
||||||
requestJson = "";
|
requestJson = "";
|
||||||
|
Loading…
Reference in New Issue
Block a user