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
Hello,
i've a mosquitto broker on an embedded device. and an embedded publisher device which sends tempreture info. So from pc i'm trying to read this tempreture values via subscribing to same publisher devices topic. My problem is on PC side at python paho client. i have attached my simple code which i get from an example. For a while the code was working. But two days ago it stops working. Of course it does not related with the time but it is weird. i'm executing the code in an virtualenv and from command prompt by typing >python mqttc_temp.py . By the way my OS is windows 10. after restarting the pc, if the code can't find a broker in the network it stops with an exception. Then when i try to execute code while a broker exists, nothing happens. Command prompt or python returning me nothing and waiting for a new command which i had not try to execute something. as you may feel from the code i'm a newbie. but i'm searching very hard. i suspect from my searchings that i can't stop the loop properly and cause of that the client loop continue to working on. i'll be glad if you may give me some advise about the issue and the solving way.