progress
This commit is contained in:
parent
e0e88597f0
commit
ec3f5393c1
1 changed files with 4 additions and 4 deletions
|
@ -71,12 +71,12 @@ void loop() {
|
||||||
|
|
||||||
StaticJsonDocument<96> jsonOut;
|
StaticJsonDocument<96> jsonOut;
|
||||||
//jsonOut["sensor"] = "1";
|
//jsonOut["sensor"] = "1";
|
||||||
jsonOut[0]["temp"] = tempSensor1;
|
jsonOut["1"]["temp"] = tempSensor1;
|
||||||
jsonOut[0]["state"] = fetState1;
|
jsonOut["1"]["state"] = fetState1;
|
||||||
|
|
||||||
//jsonOut["sensor"] = "2";
|
//jsonOut["sensor"] = "2";
|
||||||
jsonOut[1]["temp"] = tempSensor2;
|
jsonOut["2"]["temp"] = tempSensor2;
|
||||||
jsonOut[1]["state"] = fetState2;
|
jsonOut["2"]["state"] = fetState2;
|
||||||
serializeJson(jsonOut, Serial);
|
serializeJson(jsonOut, Serial);
|
||||||
Serial.println();
|
Serial.println();
|
||||||
delay(5000);
|
delay(5000);
|
||||||
|
|
Loading…
Reference in a new issue