edit sonoff script on shelly script

This commit is contained in:
2020-03-11 13:10:42 +01:00
parent 6184f3815f
commit 7825cbb7aa
4 changed files with 734 additions and 0 deletions

View File

@@ -112,6 +112,7 @@ void setup() {
jsonContent["values"]["on/off"]["value"] = (String)state;
jsonContent["settings"]["network"]["ip"] = WiFi.localIP().toString();
jsonContent["settings"]["network"]["mac"] = WiFi.macAddress();
jsonContent["settings"]["firmware_hash"] = ESP.getSketchMD5();
sendDataToWeb();
return;
}