-
Notifications
You must be signed in to change notification settings - Fork 8
Disconnection after a period of inactivity. #8
Description
Hi team
According to the answer, how the Persistent session could be implemented in the framework?
I've implemented the framework and I'm facing the same error.
Thanks in advance.
Hi, I am trying to use your framework in order to perform communication with IOT core. I have tried both apps - win forms and console core, but encountered one problem. If I connect or subscribe it works initially when I send messages from IOT core, but if I stay idle for 5-10 minutes, messages will not go through anymore. I assume it is getting disconnected. Reconnecting is expensive especially if you plan to have 3K to 10K clients. Is there a way to have connection alive?
Hi, I am trying to use your framework in order to perform communication with IOT core. I have tried both apps - win forms and console core, but encountered one problem. If I connect or subscribe it works initially when I send messages from IOT core, but if I stay idle for 5-10 minutes, messages will not go through anymore. I assume it is getting disconnected. Reconnecting is expensive especially if you plan to have 3K to 10K clients. Is there a way to have connection alive?
That's the default behaviour of AWS Iot Core. If you need longer connection, you can try implementing MQTT Persistent sessions.
https://docs.aws.amazon.com/iot/latest/developerguide/mqtt-persistent-sessions.html
Originally posted by @sundarnarasiman in #3 (comment)