We are developing MQTT Client App using Example PRovided in SDK 5.1.
"MQTT_IF_Publish" function blocks infinitely if function is called and then Wifi or Internet is Disconnected.
We are receiving Event of WIFI Disconnection as well as MQTT_EVENT_SERVER_DISCONNECT indicating Server Disconnection but Function doesn't return and keeps blocking thread.
We want to reconnect With Wifi and MQTT Broker but as Thread is blocked our app gets stuck.
Similar issue like below question,