Hi,
I was watching the heap usage using Memory_getStats() and noticed every time I run a thread that exits the memory goes down by 32 bytes. Is this expected? This particular thread calls MQTTClient_publish() so there is an fdOpenSession(TaskSelf()); and fdCloseSession(TaskSelf()); in it. I have since changed the thread to stay alive and wait on a semaphore. Keeping it alive does not cause the 32 bytes loss every time it executes.
I wanted to run the MQTTClient_publish() in the mqtt callback but this causes an exception.
Regards,
-Mike