Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Paho » Mqtt yielding and MQTTCloseSession at the end of cycle function
Mqtt yielding and MQTTCloseSession at the end of cycle function [message #1799420] Thu, 06 December 2018 13:54 Go to next message
Maciej P is currently offline Maciej PFriend
Messages: 3
Registered: December 2018
Junior Member
Hello guys,

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!
Re: Mqtt yielding and MQTTCloseSession at the end of cycle function [message #1799985 is a reply to message #1799420] Tue, 18 December 2018 12:02 Go to previous message
Maciej P is currently offline Maciej PFriend
Messages: 3
Registered: December 2018
Junior Member
Sorry for bumping topic.
Is there no easy way to solve this problem?
Previous Topic:Configure Mosquitto broker with TLS
Next Topic:Connect to Azure IOT - exception 32109
Goto Forum:
  


Current Time: Thu Apr 25 05:45:51 GMT 2024

Powered by FUDForum. Page generated in 0.03096 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top