Search found 300 matches

by ESP_YJM
Wed Feb 08, 2023 8:24 am
Forum: ESP Cloud 中文讨论版
Topic: 阿里云(esp-aliyun)云端下发解绑信息,设备端SDK报错
Replies: 1
Views: 28241

Re: 阿里云(esp-aliyun)云端下发解绑信息,设备端SDK报错

esp-aliyun 版本很老了,不支持该 topic,你可以使用该工程,https://github.com/espressif/esp-ali-smartliving,这个支持 {"identifier":"awss.BindNotify","value":{"Operation":"Unbind"}}
by ESP_YJM
Wed Feb 08, 2023 6:53 am
Forum: ESP Cloud 中文讨论版
Topic: ESP接入阿里云不稳定问题(短时间内多次掉线)
Replies: 1
Views: 27942

Re: ESP接入阿里云不稳定问题(短时间内多次掉线)

看不出原因,你换个串口工具试试呢。
by ESP_YJM
Fri Feb 03, 2023 5:57 am
Forum: 《ESP32-C3 物联网工程开发实战》书籍讨论版
Topic: Blufi例程配置过SSID和密码后断电不丢失
Replies: 3
Views: 32417

Re: Blufi例程配置过SSID和密码后断电不丢失

调用的地方在 wifi lib 内部,看不到。清楚该信息可以通过擦除 flash 重新烧录,或者试一下 esp_wifi_set_config(WIFI_IF_STA, &wifi_config);wifi_config 定义为空的结构体,来覆盖原来的配置信息。
by ESP_YJM
Thu Feb 02, 2023 8:57 am
Forum: 《ESP32-C3 物联网工程开发实战》书籍讨论版
Topic: Blufi例程配置过SSID和密码后断电不丢失
Replies: 3
Views: 32417

Re: Blufi例程配置过SSID和密码后断电不丢失

Wifi 内部默认会把 ssid 和密码存 NVS 里面,你可以看下 esp_wifi_set_storage 这个函数,默认是存 flash 里面的。
by ESP_YJM
Thu Feb 02, 2023 2:53 am
Forum: ESP-IDF 中文讨论版
Topic: esp32-c3 TCP/IP通讯,接收慢
Replies: 3
Views: 2679

Re: esp32-c3 TCP/IP通讯,接收慢

你试一下把 wifi 的 power save 关了,esp_wifi_set_ps(0),可以打印下返回值看看有没有生效。对于 TCP,你可以设置 socket option TCP_NODELAY.
如果这个试了还不行,你把 wifi 的 RX,TX AMPDU 也关了,通过 menuconfig(Component config->Wi-Fi->WiFi AMPDU TX/RX)
by ESP_YJM
Thu Feb 02, 2023 2:24 am
Forum: ESP-IDF
Topic: IDF V5.0 TCP Socket Client Memory Leak
Replies: 10
Views: 6864

Re: IDF V5.0 TCP Socket Client Memory Leak

Do the log `Set SO_LINGER success` print in your console? Could you please share your log.
by ESP_YJM
Tue Jan 31, 2023 11:22 am
Forum: ESP-IDF
Topic: IDF V5.0 TCP Socket Client Memory Leak
Replies: 10
Views: 6864

Re: IDF V5.0 TCP Socket Client Memory Leak

Why IDF v4.4 does not has this issue? Is default setting of CONFIG_LWIP_SO_LINGER changed for v5.0? Because in IDF v4.4, the lwip core will auto-free the time-wait state TCP pcb when TCP pcb number over the max TCP pcb number in https://github.com/espressif/esp-lwip/blob/2749568fe15df2003f6c3f37f0d...
by ESP_YJM
Tue Jan 31, 2023 8:38 am
Forum: ESP-IDF
Topic: IDF V5.0 TCP Socket Client Memory Leak
Replies: 10
Views: 6864

Re: IDF V5.0 TCP Socket Client Memory Leak

You need first enable CONFIG_LWIP_SO_LINGER by menuconfig. While I was testing the code, CONFIG_LWIP_SO_LINGER was enabled in both IDF4.4 and IDF5.0. Thanks for your attention to the issue. But when i enable `CONFIG_LWIP_SO_LINGER `, it works normal in IDF v5.0. If not enable it, the momery will re...
by ESP_YJM
Tue Jan 31, 2023 8:29 am
Forum: ESP-IDF
Topic: IDF V5.0 TCP Socket Client Memory Leak
Replies: 10
Views: 6864

Re: IDF V5.0 TCP Socket Client Memory Leak

It seems TCP enter in TIME-WAIT state, it neend about2 miniutes to free the resources. And SO_LINGER socket option you set not take effect. You need first enable CONFIG_LWIP_SO_LINGER by menuconfig. Why IDF v4.4 does not has this issue? Is default setting of CONFIG_LWIP_SO_LINGER changed for v5.0? ...
by ESP_YJM
Tue Jan 31, 2023 6:22 am
Forum: General Discussion
Topic: Facing the HTTPS connection issue.
Replies: 1
Views: 1233

Re: Facing the HTTPS connection issue.

0x4290 means MBEDTLS_ERR_RSA_PUBLIC_FAILED(0x4280) + MBEDTLS_ERR_MPI_ALLOC_FAILED(0x0010). Maybe you're running out of memory.