On Friday, 6 September 2019 20:15:40 UTC+2, MRAB wrote:
> On 2019-09-06 18:11, Spencer Du wrote:
> > Hi
> >
> > I want to print yes in gui.py but it does not get printed because of the
> > json. How do I fix this. Execute embedded.py and then gui.py to test.
> >
> > def on_message(client, userd
On Friday, 6 September 2019 20:15:40 UTC+2, MRAB wrote:
> On 2019-09-06 18:11, Spencer Du wrote:
> > Hi
> >
> > I want to print yes in gui.py but it does not get printed because of the
> > json. How do I fix this. Execute embedded.py and then gui.py to test.
> >
> > def on_message(client, userd
On Friday, 6 September 2019 20:15:40 UTC+2, MRAB wrote:
> On 2019-09-06 18:11, Spencer Du wrote:
> > Hi
> >
> > I want to print yes in gui.py but it does not get printed because of the
> > json. How do I fix this. Execute embedded.py and then gui.py to test.
> >
> > def on_message(client, userd
On 2019-09-06 18:11, Spencer Du wrote:
Hi
I want to print yes in gui.py but it does not get printed because of the json.
How do I fix this. Execute embedded.py and then gui.py to test.
def on_message(client, userdata, msg):
print("message recieved= " + msg.payload.decode())
# p
Hi
I want to print yes in gui.py but it does not get printed because of the json.
How do I fix this. Execute embedded.py and then gui.py to test.
embedded.py
import paho.mqtt.client as mqtt
from mqtt import *
client = mqtt.Client()
client.connect("broker.hivemq.com",1883,60)
client.on_connec