Search found 300 matches

by ESP_YJM
Thu Mar 23, 2023 2:17 am
Forum: ESP-IDF 中文讨论版
Topic: 【已解决】mqtt error
Replies: 2
Views: 1488

Re: mqtt error

这个错误是链接已经断开了,我们还在用这个链接发数据,这个可以不用关心,你路由器上电后,mqtt 能重连成功吗?
by ESP_YJM
Wed Mar 22, 2023 2:11 am
Forum: ESP-IDF 中文讨论版
Topic: 【已解决】ESP32使用HTTPS协议无法与服务器建立连接问题
Replies: 5
Views: 2587

Re: 【已解决】ESP32使用HTTPS协议无法与服务器建立连接问题

你需要有 https://indoor.xxxx(此处打码).net/api/extra/test1 网址的 CA 证书,传入到 cert_pem 里。
by ESP_YJM
Tue Mar 21, 2023 2:56 am
Forum: ESP-IDF 中文讨论版
Topic: 【已解决】ESP32使用HTTPS协议无法与服务器建立连接问题
Replies: 5
Views: 2587

Re: ESP32使用HTTPS协议无法与服务器建立连接问题

1. .is_async = false 报错 The certificate is not correctly signed by the trusted CA! 并不是初始化报错,而是服务器的 CA 证书不是受信任的 CA 机构签发的,导致 SSL 握手失败,你可以通过 idf.py menuconfig 配置使能 Component config->ESP-TLS->[*] Allow potentially insecure options->[*] Skip server ...,并且 config 中去掉 cert_pem 证书,你贴的这个证书并不是你 URL 的 CA 证书。 e...
by ESP_YJM
Tue Mar 07, 2023 2:12 am
Forum: ESP Cloud 中文讨论版
Topic: esp-ali-smartliving SDK本地定时功能
Replies: 7
Views: 29134

Re: esp-ali-smartliving SDK本地定时功能

这个实现一两句讲不清,你看看阿里云官方有没有这些适配的接口说明。
by ESP_YJM
Mon Mar 06, 2023 7:53 am
Forum: ESP Cloud 中文讨论版
Topic: esp-ali-smartliving SDK本地定时功能
Replies: 7
Views: 29134

Re: esp-ali-smartliving SDK本地定时功能

应该是这些函数没实现,要实现下。
by ESP_YJM
Fri Mar 03, 2023 7:04 am
Forum: ESP Cloud 中文讨论版
Topic: esp-ali-smartliving SDK本地定时功能
Replies: 7
Views: 29134

Re: esp-ali-smartliving SDK本地定时功能

对,你先把 ali-smartliving SDK最新版本是v1.6.6-10 整个目录替换,然后编译 ali-smartliving。注意可能要自己按照老版本手动加 esp8266 board 文件 https://github.com/espressif/esp-ali-sm ... sp8266.aos
by ESP_YJM
Fri Mar 03, 2023 3:33 am
Forum: ESP Cloud 中文讨论版
Topic: esp-ali-smartliving SDK本地定时功能
Replies: 7
Views: 29134

Re: esp-ali-smartliving SDK本地定时功能

不支持,需要升级 ali-smartliving SDK。
by ESP_YJM
Fri Feb 24, 2023 2:30 am
Forum: ESP-IDF
Topic: ESP32 Webserver on ESP-IDF - E (14713) httpd: httpd_server_init: error in listen (112), still webpage is getting loaded
Replies: 1
Views: 1538

Re: ESP32 Webserver on ESP-IDF - E (14713) httpd: httpd_server_init: error in listen (112), still webpage is getting loa

It seems the two listen TCP pcb exists and there local ip and port is the same. The address and port are already used.
by ESP_YJM
Tue Feb 21, 2023 3:06 am
Forum: ESP Cloud 中文讨论版
Topic: esp-ali-smartliving SDK功能OTA升级失败
Replies: 13
Views: 49090

Re: esp-ali-smartliving SDK功能OTA升级失败

是内存不够,一般 TLS 的话需要留有 25-30KB 内存才够,ESP32 OTA 正常是 32 内存比较充足。先执行 make reconfig,然后选择 config.esp8266.aos,然后执行 make menuconfig。你把 lightbulb task 调小 2KB,CONFIG_PTHREAD_TASK_STACK_SIZE_DEFAULT 由 6144 调小 2KB,如果调小后出现 crash,则加大点。
by ESP_YJM
Mon Feb 20, 2023 8:46 am
Forum: General Discussion
Topic: How can recognize an expired certificate on MQTT connection
Replies: 1
Views: 3026

Re: How can recognize an expired certificate on MQTT connection

There is no API to get the reason code you want. But you can try add some log in esp_mbedtls_verify_certificate in esp_tls_mbedtls.c to print flags value. If the flags value is MBEDTLS_X509_BADCERT_EXPIRE, it means the server CA certificate is expired.