Adding MQTT with mbedTLS for communicating with Cloud in FreeRTOS based project


We want our device to communicate to cloud . Currently the device is using FreeRTOS version 8.2.3. We are planning to integrate coreMQTT library with mbedTLS support for communicating with cloud . The latest version which Microchip Studio supports is v10.0.0. The one available in the FreeRTOS website is v10.4.6. Should we port to the latest version available in the FreeRTOS website to integrate coreMQTT library with mbedTLS available as thirdparty to our project. Have anyone worked in similar projects . Any information regarding these is highly appreciated.

IDE - Microchip studio
MCU - Atmel SAME5 series
LWIP integrated for TCP/IP

Thanks in advance

coreMQTT is a standalone library and can be used with any TLS/TCP stack. It requires an implementation of the transport interface and does not care which TLS/TCP stack you use in the implementation. So, no, you do not need to update FreeRTOS just for integrating the coreMQTT library.

This readme provides more details about using the library and reference implementations - coreMQTT/ at main · FreeRTOS/coreMQTT · GitHub


Thanks @aggarg for the faster reply. What about the dependency of coreMQTT with mbedtls available in the FreeRTOSv202112.00\FreeRTOS-Plus\ThirdParty folder of FreeRTOS download. We need to establish a secure connection with the cloud for data transfer.


As I mentioned before, mbedTLS is not a dependency of coreMQTT. You are free to use whichever TLS stack you want to use.

Ok. Is there any difference between the mbedTLS available with FreeRTOS library and the one available with

No, there is no difference. We sub- module the same one from ARM available in this GitHub repo - GitHub - Mbed-TLS/mbedtls: An open source, portable, easy to use, readable and flexible SSL library

Thanks for the reply