awslabs / aws-iot-device-client

The AWS IoT Device Client provides device-side functionality for AWS IoT Services.
Apache License 2.0
122 stars 67 forks source link

MQTT Connection Settings to be included in the configuration #458

Open rOY369 opened 1 month ago

rOY369 commented 1 month ago

Problem After every 20 minutes, the client is getting disconnected from the AWS IoT endpoint with this error and then getting reconnected

 2024-06-13T04:29:10.601Z [ERROR] {SharedCrtResourceManager.cpp}: MQTT Connection interrupted with error: `libaws-c-mqtt: AWS_ERROR_MQTT_TIMEOUT, Time limit between request and response has been exceeded.`. Device Client will retry connection until it is successfully connected to the core.

Setup

Request

More Context

Thank you!

HarshGandhi-AWS commented 2 weeks ago

Hello @rOY369 , thank you for reaching out to us and thank you for sharing this finding with us on changing default connection setting from keepAlive and reconnectTimeout. Yes, right now we do not have any CLI option to set this connection property. Device Client is an community project where we encourage our opensource community to contribute. We would encourage you to cut us a PR with this change so we can review and merge the change. If that is something not possible for you right now, then please be patient with us until team works on adding this enhancement. It might take some time since we are swamped with other PR and bug fixes right now.

Thank you for being patient with us. Regards, Harsh Gandhi