You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to MQTT
Hi
I have two files gui.py and embedded.py. How do I execute and connect to a broker in both files but publish a message to a topic in GUI.py and then print out something first but wait in embedded.py and then after GUI.py has published, embedded.py then subscribes to the topic and prints out something and then repeat this process again for a different publish message. Essentially if I publish something to a topic in GUI.py, embedded.py then reacts to this by subscribing to the topic and then execute some code such as printing something etc. How do I do this?