This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Reconnecting to MQTT Broker . CC3200 , CCS SDK

Hi , 

I am currently trying to reconnect to the MQTT broker without resetting the board once the  existing connection is broken or timed out . I am currently using the MQTT client example. 

So initially when I switch on the board, the device gets connected to my smartphone WiFi network and then successfully connects to the MQTT broker/server on to the cloud.

After, I turn off the WiFi network on my smartphone and turn it on again, I am able to successfully reconnect to my smartphone WiFi network without resetting the board, but my MQTT connection fails to reconnect to the broker.

1) I have tried using just the sl_ExtLib_MqttClientConnect() function after WiFi network reconnect,  but the broker connection always fails.

2) I have also tried to delete the MQTT client context and de-initialise the MQTT library, before I start a fresh MQTT connection all over,  but it still fails.

Has anyone successfully reconnected to the MQTT broker without restarting the board. If so, what steps must I take in doing this.

Any help would be very much appreciated.