jiejieTop / mqttclient

A high-performance, high-stability, cross-platform MQTT client, developed based on the socket API, can be used on embedded devices (FreeRTOS / LiteOS / RT-Thread / TencentOS tiny), Linux, Windows, Mac, with a very concise The API interface realizes the quality of service of QOS2 with very few resources, and seamlessly connects the mbedtls encryption library.
Apache License 2.0
703 stars 256 forks source link

建议将mbedtls从工程中独立出来,便于mbedtls版本的升级及多模块复用。 #73

Open wuhaogs opened 1 year ago

wuhaogs commented 1 year ago

系统中不同开发团队的多个功能模块可能都会依赖ssl模块,比如http和mqtt都需要使用mbedtls进行链路加密,为了便于多个模块复用mbedtls,以及mbedtls版本的升级,建议将mbedtls从本工程中独立出来。

wuhaogs commented 1 year ago

新版本若依赖外部mbedtls,编译 会报错,platform_net_socket.c:41:11: error: ‘MBEDTLS_ERR_NET_CONNECT_FAILED。此符号位于mbedtls中。 建议:platform\linux\platform_net_socket.c 增加#include "mbedtls/net_sockets.h"