ESP-Jumpstart例程中第5个工程:5_cloud连接报错!

zhuwenjun
Posts: 2
Joined: Thu Apr 20, 2023 6:20 am

ESP-Jumpstart例程中第5个工程:5_cloud连接报错!

Postby zhuwenjun » Thu Apr 20, 2023 6:35 am

IDF版本:esp-idf-v4.4.4
配网成功后,连不上云,报错信息如下:


Starting cloud
I (64403) cloud: Shadow Init
I (64413) cloud: Connecting to AWS...
I (67543) NimBLE: GAP procedure initiated: stop advertising.

I (67573) NimBLE: GAP procedure initiated: stop advertising.

I (67583) NimBLE: GAP procedure initiated: terminate connection; conn_handle=0 hci_reason=19

E (67663) protocomm_nimble: Error setting advertisement data; rc = 30
I (67753) wifi_prov_mgr: Provisioning stopped
I (67753) wifi_prov_scheme_ble: BTDM memory released
E (71433) aws_iot: failed! mbedtls_net_connect returned -0x52
:8883433) cloud: Error(-23) connecting to a3orti3lw2padm-ats.iot.us-east-1.amazonaws.com


请问各大神是什么原因?

ESP_YJM
Posts: 300
Joined: Fri Feb 26, 2021 10:30 am

Re: ESP-Jumpstart例程中第5个工程:5_cloud连接报错!

Postby ESP_YJM » Tue Apr 25, 2023 9:31 am

mbedtls_net_connect 返回 0x52 表示 MBEDTLS_ERR_NET_UNKNOWN_HOST,意思是 DNS 解析失败,你可以打开 DNS 日志(LWIP 里 DNS_DEBUG)看下,是否可以解析成功。

Who is online

Users browsing this forum: No registered users and 171 guests