|Mqtt yielding and MQTTCloseSession at the end of cycle function [message #1799420]
||Thu, 06 December 2018 13:54
| Maciej P
Registered: December 2018
I have problem with yielding functionality - if no data is waiting for us, using this method will automatically closes connection.
Could You help understand me why?
The flow of my application is:
Connect, Subscribe, Publish, do some stuff, and before breaking the application process I want to check whenever something is pending, unsubscribe.
If something were pending, there might be chance to do some more publishing. If there is no pending message, MQTTCloseSession(c); ends session on the end of the int cycle(MQTTClient* c, Timer* timer), and so I cannot unsubscribe, nor do anything on broker side.
Thank You for all feedback!
Powered by FUDForum
. Page generated in 0.01272 seconds