@@ -108,5 +108,5 @@ def action_countplants(client: mqtt.Client, userdata, message: mqtt.MQTTMessage, | |||
"CurrentCount": mydatabase.plant_count(), | |||
"MaxCount": MAX_PLANT_COUNT | |||
} | |||
print("BACKEND_DATA_PLANTCOUNT SENDED DATA:" + str(count_payload)) | |||
client.publish(Topics["BACKEND_ACTION_PLANTCOUNT"], json.dumps(count_payload, indent=4)) | |||
print(type(json.dumps(count_payload))) | |||
client.publish(Topics["BACKEND_ACTION_PLANTCOUNT"], json.dumps(count_payload)) |