devices GEEN IDEE!

This commit is contained in:
Atilla
2024-04-02 11:23:40 +02:00
parent 34b4f9ef89
commit 6f391d01f6
3 changed files with 90 additions and 31 deletions

View File

@@ -49,6 +49,9 @@ def on_message(client, userdata, message):
print(f"\033[92mMessage received on topic\033[0m {message.topic}: {data}")
# def berekenAlgo(data):
if __name__ == "__main__":
topic = "goodgarden/devices"
subscribe.callback(on_message, topic)
subscribe.callback(on_message, topic)