-
Notifications
You must be signed in to change notification settings - Fork 754
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Paho.mqtt-c master asyncrounous subscribtion keep alive issue #215
Comments
Hello @prashanthk232,
In my application I had similar behavior (poor network quality) the implementation was something like, You only call the Yield function once you frame is completed. For the keep alive i move it out of the cycle function and handle separately with the same asynchronous mechanism. I could share the code if needed. Cheers |
Thank you 😊 please share it |
Below the implementation of the function MQTTPacket_readnb() The structure MQTT transport now include a timer + callback function to reset the input buffer data in case of Timeout
Once the function MQTTPacket_readnb() return a value different from 0, the function cycles is called. |
When i suscribe in mqtt asyncrounous the controller not come back to my main ( ) function. It stay in keepalive function loop. after subscription i want to do some task on my application but controller is still there in keep alive function. please any one tell me how to run my appliction after subscribe
The text was updated successfully, but these errors were encountered: