sskaje / mqtt

MQTT Client class
https://sskaje.me/category/MQTT/
MIT License
86 stars 33 forks source link

Fixes to make sure broker waits for the SUBACK rather than stopping #30

Closed svenholtrop closed 5 years ago

svenholtrop commented 5 years ago

There was a bug where once the loop function was called, the client would not wait to receive the SUBACK. It would then stop the loop as there were no topics to subscribe to and it had not yet officially subscribed to the topics from the original subscribe request. Normally, this is not a problem, but if the session is not clean, one usually receives several other things before getting a SUBACK.

range-of-motion commented 5 years ago

@sskaje are you still reviewing PRs? :thinking: