From ec3f5393c17d9ae935d9c3fa23edcafd5d46e70a Mon Sep 17 00:00:00 2001 From: Marcus Date: Mon, 7 Aug 2023 01:41:27 +0200 Subject: [PATCH] progress --- main/main.ino | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main/main.ino b/main/main.ino index 7d78b58..8999e98 100644 --- a/main/main.ino +++ b/main/main.ino @@ -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);