This commit is contained in:
caliskanbi 2023-05-10 16:16:14 +02:00
parent 35118e8c20
commit a16c313a6c

View File

@ -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))