Hello,
I'm seeing a similar issue here where the I'm getting this error: OTHER_SIDE_CLOSE_SSL_DATA_NOT_ENCRYPTED (2). It is always coupled with SL_ESECCLOSED (-452).
I'm using FreeRTOS.
The answer given to a similar questions was:
"TCP connection was closed from remote side (server side). You need to close connection before timeout at server side or ignore this event.". What does this mean exactly. Why do I need to close the connection prior to which timeout?
I've been in contact with AWS (the broker we use) and they're saying the connection on their end is solid, no TLS/encryption drops.
When this occurs we then see MQP_ERR_NOTCONN (-7) errors immediately after.