Page 1 of 1

How to determine the status of AWS IOT mqtt connection

Posted: Wed Apr 21, 2021 12:12 pm
by rwel59
Using espidf v4.2 with the embedded aws-iot-sdk. Occasionally I get an error in the yield loop that causes the mqtt connection to get dropped but the disconnect handler does not get called. So now, I simply print out the error and call yield again which returns OK.

Is there a method to call that will provide the status of the mqtt connection?

Re: How to determine the status of AWS IOT mqtt connection

Posted: Tue May 04, 2021 11:59 pm
by rwel59
to answer my own question and not sure why I couldn't find this before...

method: bool aws_iot_mqtt_is_client_connected (AWS_IoT_Client *pClient) documented at http://aws-iot-device-sdk-embedded-c-do ... 3739e3d744