How to determine the status of AWS IOT mqtt connection

rwel59
Posts: 97
Joined: Thu Oct 12, 2017 3:32 pm

How to determine the status of AWS IOT mqtt connection

Postby rwel59 » Wed Apr 21, 2021 12:12 pm

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?

rwel59
Posts: 97
Joined: Thu Oct 12, 2017 3:32 pm

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

Postby rwel59 » Tue May 04, 2021 11:59 pm

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

Who is online

Users browsing this forum: No registered users and 113 guests