IP disconnected - mqtt_Connect() behaviour and mqtt detecting connection state
johnofleek opened this issue · comments
John commented
I have found that if IP is disconnected when I call mqtt_Connect() the callback handler fails with isConnected == false. Which seems reasonable.
Later when the IP connection is connected no attempt is made by mqttClient to connect. Not sure if this is expected behaviour?
An mqtt_Status() function would be useful to check the connect / connecting status maybe to report
mqttClient_t.session.isConnected
I can see mqttClient_t* mqttMain_getClient(void); in the original IBM mqtt code. As Legato IPC doesn't support structures I think mqtt_Status() could work around this. Maybe in an ascii Key / Value to allow read access to other structure members as well?