GCP IoT connection closed because MQTT keep-alive check failed

499 views
Skip to first unread message

Agron Ce

unread,
Jul 1, 2019, 3:07:13 PM7/1/19
to Google Cloud Developers

GCP IoT Core showing error: "mqtt: SERVER: The connection was closed because MQTT keep-alive check failed." 


Error Message: https://imgur.com/2Aragbp


Under the monitoring tab, I can see data sent/received, however I believe the above error is preventing the data being sent to firebase.

Have tried rebuilding the avr-iot device, which indicate data is being sent with no errors.

Is there a specific reason why I might be getting this error?

Ali T (Cloud Platform Support)

unread,
Jul 23, 2019, 1:38:06 PM7/23/19
to Google Cloud Developers
Hi,

Given the error message, I would suspect you device didn’t emit a heartbeat for a while resulting in the MQTT connection to close. I would suggest going over the possible causes of this error and adjust the heartbeat frequency accordingly. 

Reply all
Reply to author
Forward
0 new messages