配网后调用https接口报错

stephensix
Posts: 1
Joined: Tue Oct 29, 2024 5:31 am

配网后调用https接口报错

Postby stephensix » Tue Oct 29, 2024 5:43 am

hello,在esp32开发应用程序时遇到如下问题:

在通过blufi配网成功(获取到公网IP)后,调用sntp去同步时间得到回掉后,调用event_loop发送一个自定义event去调用https的接口,在event handler中使用esp_http_client调用https接口时,出现如下错误:
E (781091) esp-tls: [sock=54] delayed connect error: Software caused connection abort
E (781091) esp-tls: Failed to open new connection
E (781101) transport_base: Failed to open a new connection
E (781111) HTTP_CLIENT: Connection failed, sock < 0
同样的操作在app上多点几次,一样的逻辑会有偶尔https调用成功的现象。
esp-idf用的是5.3.1

请问该问题要怎样排查?

Who is online

Users browsing this forum: Google [Bot] and 68 guests