Hi,
I'm working with SDK 1.2.0 and CCS version 6.1.3.00033
I've a problem with sl_ExtLib_MqttClientDisconnect function. It looks that it never returns.
I've made a slight modification to mqtt_client application to be able to initiate disconnect on SW3 button press.
else if(PUSH_BUTTON_SW3_PRESSED == RecvQue.event) { Button_IF_EnableInterrupt(SW3); if(iConnBroker>=1) { UART_PRINT("Before disconnect: \n\r"); sl_ExtLib_MqttClientDisconnect((void*)local_con_conf[iCount].clt_ctx); UART_PRINT("After Disconnect Ok: \n\r"); }
And this is terminal output
Before disconnect:
C: FH-B1 0xe0 to net 17, Sent (2 Bytes) [@ 12]
C: TX closing Net 17 [DISCONN]
C: RX closing Net 17 [-7]
C: Cleaning session for net 17
C: Net 17 now closed
disconnect from broker xxx.xxx.xxx.xxx --> printed from sl_MqttDisconnect
After this there no more activity in MqttClient task. It seem to be waiting forever and nothing happens
This problem was mentioned also at https://e2e.ti.com/support/wireless_connectivity/simplelink_wifi_cc31xx_cc32xx/f/968/t/553736