Need a help

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
Posts: 1
Joined: Thu Aug 08, 2019 8:00 pm

Need a help

Post by MaxP » Thu Aug 08, 2019 8:11 pm


I use umqtt on ESP8266 to connect to Thingsboard MQTT broker.

AFAIK the in current implementation of umqtt, after subscribing to a topic the server must send a response, therefore the client waits for that response. However the Thingsboard built-in MQTT ... art-survey broker does not send any response after subscribe, so my program waits forever.
Could you please recommend any workaround? How should I rewrite the umqtt.simple to handle this behavior?

Last edited by MaxP on Sat Aug 10, 2019 8:25 pm, edited 2 times in total.

User avatar
Posts: 4789
Joined: Fri Jul 18, 2014 8:01 am
Location: UK

Broken brokers

Post by pythoncoder » Fri Aug 09, 2019 8:02 am

My personal view is that trying to code around a broken broker is a hiding to nothing - you'll be forever chasing other non-conformant behaviour. Use a proper broker, e.g. mosquitto which will run happily on minimal hardware such as a Raspberry Pi.
Peter Hinch

Post Reply