1 Answer
- Newest
- Most votes
- Most comments
1
Hi
IoT Core has not realised that your app lost connection, the keep alive time must expire for that. You can try and do an reconnect with exponential backoff, to give IoT Core time to disconnect.
However, it should be the previous client that is disconnected. Have you checked that you get disconnect on your new connection and not on the old?
See the life cycle documentation.
The client is using a client ID that is already in use. In this case, the client that is already connected will be disconnected with this disconnect reason.
Relevant content
- Accepted Answerasked a year ago
- asked 2 years ago
- AWS OFFICIALUpdated 5 months ago
- AWS OFFICIALUpdated a month ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
Hi, just one clarification: when you say "momentarily loose connection", how much is typically the duration of the disconnection? it might be useful to look at the following events published by IoT Core https://docs.aws.amazon.com/iot/latest/developerguide/life-cycle-events.html just to be sure that the IoT Core is actually disconnecting the device for MQTT_KEEP_ALIVE_TIMEOUT.