I am working on an application based on the "WINC1500 MQTT Chat Example for SAMD21". This uses the third party "paho mqtt" library.
If, for whatever reason, the broker goes offline, I need to be able to automatically reconnect. The issue I am having is that there seems to be no way for me to detect that the broker is offline. No state change is triggered in the mqtt_Callback, My mqtt_publish() calls continue to return SUCCESS codes, and the "isConnected" flag in the mqtt struct continues to be TRUE. But when the broker comes back online, it does not receive my published messages.
Does anyone have any experience implementing connection persistence with the MQTT library?