Tool/software: TI-RTOS
Team,
I am using MQTT connection on my CC3220S-LAUNCHXL with the latest SDK (1.60.00.04) and found that it take away 112 bytes on each connection attempts. This is not recovered even after closing the MQTT library properly.
The steps are -
MQTT pre-initialization, --> MQTTClient_connect(gMqttClient) (there will be a reduction of 112 from heap as per Runtime Object View) --> Destroy method(when connection attempt fails) I invoke MQTTClient_unsubscribe(gMqttClient , subscriptionInfo, SUBSCRIPTION_TOPIC_COUNT) --> MQTTClient_disconnect(gMqttClient) & finally MQTTClient_delete(gMqttClient).
On closely monitoring the heap, I could see a reduction of 112 bytes on each attempts. The connection attempt will be looping when there is no internet connection and within few minutes we would run out of memory.
I have also tried the example mqtt_client in the SDK folder and seems to get the same result. Appreciate if someone can look in to this. As of now I suspect some memory mismanagement in MQTTClient_connect
Regards
Zac