Skip to content
This repository was archived by the owner on Jul 10, 2024. It is now read-only.

Disconnection after a period of inactivity.  #8

@yesidbalvin

Description

@yesidbalvin

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions