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