edit sonoff script on shelly script

This commit is contained in:
Haitem committed 2020-03-11 13:10:42 +01:00
1 parent 6184f3815f
commit 7825cbb7aa
4 files changed
+734

No files matched your search

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