Need a help

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

Need a help

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

Hi!

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 https://yappem.com/www-survey-walmart-c ... 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?

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

User avatar
pythoncoder
Posts: 3508
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

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