Closed xp187oo closed 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
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