TencentCloud / tencentcloud-iot-explorer-sdk-embedded-c

SDK for embedded system connect and comunicate with Tencent Cloud IoT Explorer Platform
Other
113 stars 52 forks source link

C-SDK 按照说明文档添加到ESP8266 SDK 中编译报错 #2

Closed xp187oo closed 4 years ago

xp187oo commented 4 years ago

ESP8266_SDK版本(release/v3.3),编译过程HAL_TLS_mbedtls.c 报错 报错内容如下所示

/esp/ESP8266_RTOS_SDK/components/qcloud_iot/qcloud_iot_c_sdk/platform/*_HAL_TLS_mbedtls.c:152:30: error: implicit declaration of function 'mbedtls_ssl_conf_psk' [-Werror=implicit-function-declaration] ret = mbedtls_ssl_conf_psk(&(pDataParams->ssl_conf), (unsigned char )pConnectParams->psk,_** ^ /home/xp/esp/ESP8266_RTOS_SDK/components/qcloud_iot/qcloud_iot_c_sdk/platform/HAL_TLS_mbedtls.c: At top level: cc1: warning: unrecognized command line option '-Wno-frame-address' cc1: some warnings being treated as errors

xp187oo commented 4 years ago

ESP8266_SDK版本(release/v3.3),编译过程HAL_TLS_mbedtls.c 报错 报错内容如下所示

/esp/ESP8266_RTOS_SDK/components/qcloud_iot/qcloud_iot_c_sdk/platform/*_HAL_TLS_mbedtls.c:152:30: error: implicit declaration of function 'mbedtls_ssl_conf_psk' [-Werror=implicit-function-declaration] ret = mbedtls_ssl_conf_psk(&(pDataParams->ssl_conf), (unsigned char )pConnectParams->psk,_** ^ /home/xp/esp/ESP8266_RTOS_SDK/components/qcloud_iot/qcloud_iot_c_sdk/platform/HAL_TLS_mbedtls.c: At top level: cc1: warning: unrecognized command line option '-Wno-frame-address' cc1: some warnings being treated as errors

_找到问题了!ESP8266 SDK中,Componentconfig->mbedTLS->TLS KEY Exchange Methods 开启 Enable PSK based ciphersuite modes