random AWS device disconnection issue. #415
-
We have experienced random AWS device disconnections and were suggested by AWS team to use the “reschdulePing:false” flag and a hook (or event) to handle the device disconnection(due to missed keepalive message) once it has occurred. We would like further information about the ‘Hook” (event?) that we have been asked to use to detect the disconnection. We looked in the library (aws-iot-device-sdk & mqtt) documentation but so far did not find anything relevant. We are using version "1.0.14" of "aws-iot-device-sdk" which seems to have version "1.11.2" of MQTT library embedded within it. Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Look for "reschedulePings" in the mqtt-js documentation. If you're looking for disconnection notices, it looks like the event on the DeviceClient object is 'offline' |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
Look for "reschedulePings" in the mqtt-js documentation.
If you're looking for disconnection notices, it looks like the event on the DeviceClient object is 'offline'