aws / aws-iot-device-sdk-embedded-C

SDK for connecting to AWS IoT from a device using embedded C.
MIT License
975 stars 623 forks source link

If the cloud platform is disconnected, the sdk will not call back the disconnected state #1847

Closed moookpn closed 1 year ago

moookpn commented 1 year ago

Currently, a problem has been found: sometimes when the connection with the cloud platform is disconnected, the sdk will not call back the disconnected state

moookpn commented 1 year ago

image image

AniruddhaKanhere commented 1 year ago

Hello @guowusheng,

Thank you for reaching out to us. If I understand correctly, when your device is disconnected from the broker the code fails to call the callback (aws_iot_disconnect_handler highlighted above). Is that accurate?

Also, may I ask which platform are you using? Also, have you tried stepping through the code to see what happens during a disconnect?

Thanks, Aniruddha

alfred2g commented 1 year ago

Closing for 7 days inactivity, please reopen when more information are available