From a16c313a6c6c8332b8ac664de623b22fe9727d28 Mon Sep 17 00:00:00 2001 From: caliskanbi Date: Wed, 10 May 2023 16:16:14 +0200 Subject: [PATCH] TEST+ --- software/backend/data_functions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/software/backend/data_functions.py b/software/backend/data_functions.py index 029f9e7..d3943f2 100644 --- a/software/backend/data_functions.py +++ b/software/backend/data_functions.py @@ -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))