Hi,
i use sdk 1.3.0 and my question is why sl_ExtLib_MqttClientCtxDelete() failed when the wifi connection was droped by AP and there is a pennding qos1 message without clean session.
The flow was:
- Device connected to some mqtt broker and send data to topic with qos1.
- Suddenly AP drop a connection of the specific device for few minutes.
- sl_ExtLib_MqttDisconn callback receved
- Code call sl_ExtLib_MqttClientCtxDelete that return -1
-
mqtt_client_ctx_delete -> awaits_pkts -> client->qos_ack1_wl.head <-- is true
-
- How to free the mutex or restart the connection when the AP available
- Maybe during
clean
= false i shouldn't delete the context?
Thanks