Search found 300 matches

by ESP_YJM
Tue Jan 31, 2023 6:15 am
Forum: ESP-IDF
Topic: How to configure static ip in ap mode
Replies: 4
Views: 3187

Re: How to configure static ip in ap mode

It seems the station connected to the AP and get the IP 10.34.46.6. But the station still leave the connection from AP. I run your example and the station not auto leave the AP. Could you please try other station.
by ESP_YJM
Tue Jan 31, 2023 5:55 am
Forum: ESP-IDF
Topic: IDF V5.0 TCP Socket Client Memory Leak
Replies: 10
Views: 5285

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.
by ESP_YJM
Mon Jan 30, 2023 3:20 am
Forum: ESP-IDF 中文讨论版
Topic: ESP32-S3 HTTPS esp_mbedtls_handshake握手平均耗时3s以上
Replies: 6
Views: 2407

Re: ESP32-S3 HTTPS esp_mbedtls_handshake握手平均耗时3s以上

我们有 ECDH,DHE 和 RSA 的对比数据,时间消耗上 RSA < DHE < ECDH ,所以你看下服务器是否支持 RSA-WITH-AES,可以在客户端专门设置特定的加密套件,修改该配置,比如设置 TLS_RSA_WITH_AES_128_GCM_SHA256,可以在如下文件 https://github.com/espressif/esp-idf/blob/master/components/mbedtls/port/include/mbedtls/esp_config.h#L2959 加一句 #define MBEDTLS_SSL_CIPHERSUITES MBEDTLS_TLS...
by ESP_YJM
Sat Jan 28, 2023 6:52 am
Forum: ESP-IDF
Topic: MQTTs - disable hostname verification
Replies: 3
Views: 2127

Re: MQTTs - disable hostname verification

Yes, you can set skip_cert_common_name_check(https://github.com/espressif/esp-mqtt/b ... ent.h#L260) to true to skip check server hostname in CA.
by ESP_YJM
Sat Jan 28, 2023 3:46 am
Forum: ESP-IDF
Topic: How to configure static ip in ap mode
Replies: 4
Views: 3187

Re: How to configure static ip in ap mode

Your AP IP address is class A, and the netmask can't be 255.255.255.0, you can change

Code: Select all

IP4_ADDR(&ip_info.netmask, 255, 255, 255, 0);
to

Code: Select all

IP4_ADDR(&ip_info.netmask, 255, 0, 0, 0);
by ESP_YJM
Tue Jan 17, 2023 12:12 pm
Forum: ESP-IDF 中文讨论版
Topic: ESP32-S3 HTTPS esp_mbedtls_handshake握手平均耗时3s以上
Replies: 6
Views: 2407

Re: ESP32-S3 HTTPS esp_mbedtls_handshake握手平均耗时3s以上

1.3s 的时间算正常。目前日志中没看到握手所使用的加密套件,如果用了椭圆算法就会比较久。你可以参考函数 mbedtls_ssl_get_ciphersuite 打印加密套件(这个需要在握手成功后),看日志是没有套件打印。
by ESP_YJM
Tue Jan 17, 2023 11:50 am
Forum: General Discussion
Topic: ota via http and using ESP32 as AP instead of as STA
Replies: 4
Views: 2417

Re: ota via http and using ESP32 as AP instead of as STA

Hi Sorry that i have not considered the IP address of PC is not fixed. But i think this is not a problem. You can use mdns or other solution to let the AP to find the PC that support OTA. For mdns, i think you can check the mdns components. And for other solutions, i think you can create a TCP serve...
by ESP_YJM
Tue Jan 17, 2023 3:20 am
Forum: General Discussion
Topic: ota via http and using ESP32 as AP instead of as STA
Replies: 4
Views: 2417

Re: ota via http and using ESP32 as AP instead of as STA

Hi,
ESP32 as http server and PC as http client to upload the firmware to ESP32 and flash firmware to flash is workable. But it may be unfriendly for you to implement it. I think you can use ESP32 as AP and HTTP client, your PC as HTTP server, it will be easy for you.
by ESP_YJM
Thu Jan 12, 2023 12:46 pm
Forum: ESP-IDF
Topic: Configure the client port in esp_http_client request?
Replies: 3
Views: 1383

Re: Configure the client port in esp_http_client request?

The source port is allocated in https://github.com/espressif/esp-lwip/blob/705dd71d46779bf29653f1f1d7b1af5a09fb2aa7/src/core/tcp.c#L1124, not in esp_http_client component, it is in low layer lwip. It is difficult to get the source port in esp_http_client layer. Because you have no API to get socket ...