TEST+
This commit is contained in:
1 parent
35118e8c20
commit
a16c313a6c
1 file changed
+2
-2
@@ -108,5 +108,5 @@ def action_countplants(client: mqtt.Client, userdata, message: mqtt.MQTTMessage,
|
|||||||
"CurrentCount": mydatabase.plant_count(),
|
"CurrentCount": mydatabase.plant_count(),
|
||||||
"MaxCount": MAX_PLANT_COUNT
|
"MaxCount": MAX_PLANT_COUNT
|
||||||
}
|
}
|
||||||
print("BACKEND_DATA_PLANTCOUNT SENDED DATA:" + str(count_payload))
|
print(type(json.dumps(count_payload)))
|
||||||
client.publish(Topics["BACKEND_ACTION_PLANTCOUNT"], json.dumps(count_payload, indent=4))
|
client.publish(Topics["BACKEND_ACTION_PLANTCOUNT"], json.dumps(count_payload))
|
||||||
Reference in new issue
Block a user