This commit is contained in:
Marcus 2023-08-07 01:41:27 +02:00
parent e0e88597f0
commit ec3f5393c1

View file

@ -71,12 +71,12 @@ void loop() {
StaticJsonDocument<96> jsonOut;
//jsonOut["sensor"] = "1";
jsonOut[0]["temp"] = tempSensor1;
jsonOut[0]["state"] = fetState1;
jsonOut["1"]["temp"] = tempSensor1;
jsonOut["1"]["state"] = fetState1;
//jsonOut["sensor"] = "2";
jsonOut[1]["temp"] = tempSensor2;
jsonOut[1]["state"] = fetState2;
jsonOut["2"]["temp"] = tempSensor2;
jsonOut["2"]["state"] = fetState2;
serializeJson(jsonOut, Serial);
Serial.println();
delay(5000);