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.

CC3100: During AP disconection Command sl_ExtLib_MqttClientCtxDelete failed for qos 1 messages

Part Number: CC3100

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
  1.  How to free the mutex or restart the connection when the AP available
  2. Maybe during clean = false i shouldn't delete the context?

Thanks