diff --git a/main.py b/main.py index 47b3118..91457f1 100755 --- a/main.py +++ b/main.py @@ -16,9 +16,9 @@ while 1: # ser.readline() Data = ser.readline().decode('ascii') print(Data) - #outFile = open("arduino-fridge-powercontrol.json", "w") - #outFile.write(Data) - #outFile.close + outFile = open("arduino-fridge-powercontrol.json", "w") + outFile.write(Data) + outFile.close ##while 1: ## # { "command": "switch", "arg": "one", "state": "off", "ver":"1690931931"} diff --git a/main/main.ino b/main/main.ino index 435d4ad..7d78b58 100644 --- a/main/main.ino +++ b/main/main.ino @@ -78,7 +78,7 @@ void loop() { jsonOut[1]["temp"] = tempSensor2; jsonOut[1]["state"] = fetState2; serializeJson(jsonOut, Serial); - + Serial.println(); delay(5000); }