Does not return from MQTT_AGENT_Connect

The reason for the suggestion is - this seems like a memory corruption and stack overflow is one of the main reasons for memory corruption. Is it possible that you are using a connection after it is closed as mentioned in this issue - Issue Closing TCP Socket - #7 by kohiro.

1 Like