Mbed TLS and LwIP: How to force the client-side connection to be closed?
I have a device (STM32F4 with FreeRTOS, LWIP, MbedTLS) that establishes a TLS connection with a server. I want to keep this connection up all the time for two-way message exchange in time intervals of 30 seconds to 10 minutes. Sometimes I want to close this connection to temporarily free RAM (~40kB) for other tasks. Most of the time the task is blocked on the mbedtls_ssl_read() function.
Mbed TLS and LwIP: How to force the client-side connection to be closed?
I have a device (STM32F4 with FreeRTOS, LWIP, MbedTLS) that establishes a TLS connection with a server. I want to keep this connection up all the time for two-way message exchange in time intervals of 30 seconds to 10 minutes. Sometimes I want to close this connection to temporarily free RAM (~40kB) for other tasks. Most of the time the task is blocked on the mbedtls_ssl_read() function.