Commit Graph

1111 Commits

Author SHA1 Message Date
muhaidong
8f92270cf6 fix(wifi): add ESP_WIFI_MAX_CONN_NUM-aligned ranges for soft-AP max STA Kconfig 2026-05-19 21:12:11 +08:00
Ashish Sharma
d0903c1cb4 fix(http_request): fixes failing pytest 2026-05-11 18:08:54 +08:00
Aditya Patwardhan
1d573ef72c Merge branch 'fix/x509_bundle_replace_unreliable_url_v5.5' into 'release/v5.5'
fix(examples): replace unreliable external URL in https_x509_bundle example (backport v5.5)

See merge request espressif/esp-idf!47719
2026-05-10 14:48:07 +05:30
Aditya Patwardhan
4b9f9ffa38 Merge branch 'fix/http_server_async_handler_connection_retry_v5.5' into 'release/v5.5'
fix(http_server/async_handler): Fix http_server async handler tests (backport v5.5)

See merge request espressif/esp-idf!47724
2026-05-10 14:47:08 +05:30
Fu Hanxi
8a9c2cbeb1 tests: change wifi tests expect timeout to 60
- wifi_router
- wifi_ap
- wifi_high_traffic
2026-04-22 09:22:20 +02:00
Hrushikesh Bhosale
1f44f4022e fix(http_server/async_handler): Fix http_server async handler tests
The async handler CI tests fail intermittently because the TCP
connection from the pytest host to the ESP32 HTTP server times out
or gets refused.

Add a _connect_with_retry() helper that retries the TCP connection
up to 3 times with a 2-second delay between attempts, catching
TimeoutError, ConnectionRefusedError, and OSError.

Extract common server startup waiting into _wait_for_server_ready()
which includes a 2-second stabilization delay after the server
registers its URI handlers before tests begin sending requests.

(cherry picked from commit a665e7410c)
2026-04-17 14:42:15 +05:30
Hrushikesh Bhosale
af58b0c058 fix(https_x509_bundle): replace unreliable external URL in https_x509_bundle example
Replace howsmyssl.com with letsencrypt.org in the https_x509_bundle
example. howsmyssl.com is a third-party server that is frequently
unreachable from CI, causing flaky test failures. letsencrypt.org
chains to the same ISRG Root X1 CA, so the custom certificate bundle
validation coverage is identical.

Since letsencrypt.org was already present in the full bundle URL list,
remove the duplicate entry and reduce MAX_URLS from 9 to 8. All 6
unique root CAs in the stress test are still covered.

For the QEMU stress test, increase per-connection timeout from 30s to
60s and final completion timeout from 60s to 180s. QEMU emulated
network is 3-5x slower than real hardware for TLS handshakes.

(cherry picked from commit d6596eff3a)
(squashed with commit 995c0f129e)
2026-04-17 14:39:08 +05:30
Ashish Sharma
a4c40112c3 fix: removes deprecated http_crypto sources 2026-03-30 13:45:28 +08:00
Ashish Sharma
9681ec0f9c fix: fixes failing dynamic buffer tests 2026-03-30 13:45:28 +08:00
Mahavir Jain
4322004453 Merge branch 'contrib/github_pr_18310_v5.5' into 'release/v5.5'
fix(esp_http_server): Dispatch PONG frames to WebSocket handler (GitHub PR) (v5.5)

See merge request espressif/esp-idf!46656
2026-03-30 10:24:02 +05:30
Ashish Sharma
4425dbf4af feat(http_server): adds example to test server pong response 2026-03-16 16:55:54 +08:00
Ashish Sharma
6f392e6fd6 feat(http_server): improve websocket server handling
1. Adds post handshake callback
2. Removes requirement to handle HTTP_GET message in websocket handler

Closes https://github.com/espressif/esp-idf/issues/18215
2026-03-16 13:57:59 +08:00
Jiang Jiang Jian
99492e859b Merge branch 'ci/fix_mqtt_sll_test_v5.x' into 'release/v5.5'
ci(mqtt): use QoS=1 for control messages in SSL test

See merge request espressif/esp-idf!44092
2026-03-03 19:37:33 +08:00
Mahavir Jain
53c7697465 Merge branch 'bugfix/esp_local_ctrl_arg_check_v5.5' into 'release/v5.5'
fix(esp_local_ctrl): validate payload_case matches msg_type in command dispatcher (v5.5)

See merge request espressif/esp-idf!45925
2026-02-27 09:43:33 +05:30
Alexey Gerenkov
0c7eac2565 Merge branch 'feature/picolibc_v5.5' into 'release/v5.5'
feat(build): add Picolibc support (v5.5)

See merge request espressif/esp-idf!44108
2026-02-26 18:12:58 +08:00
Mahavir Jain
dbc3098182 Merge branch 'contrib/github_pr_17641_v5.5' into 'release/v5.5'
Allow the https server to request client certs only with OPTIONAL (GitHub PR) (v5.5)

See merge request espressif/esp-idf!45797
2026-02-18 18:03:52 +05:30
Mahavir Jain
ab9e5cc34d docs(protocomm): recommend using security2 scheme for production purpose 2026-02-17 11:47:12 +05:30
0xFEEDC0DE64
2ed84eb04b feat(esp_http_server): Allow the https server to request client certs optionally
Closes https://github.com/espressif/esp-idf/pull/17641
2026-02-11 17:49:44 +08:00
Alexey Lapshin
250db2464d fix(icmp_echo): fix incorrect test expectation logic 2026-02-05 13:40:11 +07:00
Bogdan Kolendovskyy
7518cae20f ci(mqtt): use QoS=1 for control messages in SSL test
SSL test relies on the device receiving a control message during the test, which was being sent
with QoS=0. Send the control message with QoS=1 to avoid failures due to poor network connection.
2026-02-03 13:05:26 +01:00
hrushikesh.bhosale
e1caea2e14 fix(esp_http_client): Fixed the esp_http_client example test
- remove the dut expect which was expect error code for invalid
request, as the HTTP_EVENT_DISCONNECTED is not getting triggered
2026-01-27 17:22:39 +05:30
hrushikesh.bhosale
6733adaccc fix(esp_http_client): Fixed the example pytest
Pytest was expect the positive content length for async req
2026-01-27 17:08:08 +05:30
Jiang Jiang Jian
f32cadd971 Merge branch 'fix/enable_p4v3_tests_v5.5' into 'release/v5.5'
fix(ci): re-enabled ESP32P4 tests on different HW vers (v5.5)

See merge request espressif/esp-idf!44453
2026-01-16 14:31:48 +08:00
Chen Yudong
5ffa9d5dcb fix(example): add nvs_flash to mqtt ssl_ds requirement 2026-01-15 12:57:26 +08:00
Ondrej Kosta
498989ea10 fix(ci): re-enabled ESP32P4 tests on different HW vers 2026-01-06 22:17:58 +08:00
Ondrej Kosta
3fe406aa92 feat(ci): updated Ethernet tests to align with new runners 2025-12-01 16:16:03 +01:00
hrushikesh.bhosale
b554cbe9b4 fix(http_server): Fixed response status code for temporary redirect
Closes https://github.com/espressif/esp-idf/issues/17791
2025-11-04 15:05:07 +05:30
Ondrej Kosta
c80867e16a fix(examples): fix version ref. to ethernet_init in static_ip example 2025-10-21 09:57:06 +02:00
hrushikesh.bhosale
067faa25c2 fix(http_server): Fix CI test failure async_handler
pytest trying to hit the server, before registration
of URI handlers or starting of server
2025-10-13 10:36:52 +05:30
Mahavir Jain
b966e396d3 Merge branch 'feat/support_authentication_feature_for_ws_v5.5' into 'release/v5.5'
Added pre handshake callback for websocket (v5.5)

See merge request espressif/esp-idf!41037
2025-09-02 09:18:29 +05:30
hrushikesh.bhosale
80b26b6c2b feat(esp_http_client): Make https_async request under CERT BUNDLE config
Make https_async rqeuest under MBEDTLS_CERTIFICATE_BUNDLE config
2025-08-22 16:31:15 +05:30
muhaidong
8fe3d573d2 fix(ci): increase the bin size of esp-mqtt ssl example with psk verification 2025-08-21 10:11:09 +08:00
muhaidong
12e1db7753 fix(ci): increased app partition size in mqtt5 example 2025-08-20 19:52:49 +08:00
hrushikesh.bhosale
2ac79a842c fix(esp_http_client): Moved httpd_async request from cert_pem to crt_bundle
Moved the httpd_async request from cert_pem to esp_crt_bundle. As cert_pem
is alredy tested for howmyssl URL
2025-08-05 16:25:40 +05:30
hrushikesh.bhosale
415a05a6a5 feat(esp_http_server): Added pre handshake callback for websocket
1. If the user wants authenticate the request, then user needs to do
this before upgrading the protocol to websocket.
2. To achieve this, added pre_handshake_callack, which will execute
before handshake, i.e. before switching protocol.
2025-08-04 20:58:54 +05:30
Jiang Jiang Jian
9c4aa443b0 Merge branch 'bugfix/enable_ipv6_if_nan_v5.5' into 'release/v5.5'
bugfix(wifi): Enable IPv6 support via LWIP_IPV6 when WiFi Aware(NAN) is enabled (Backport v5.5)

See merge request espressif/esp-idf!40486
2025-07-24 00:18:29 +08:00
Jack
48336d423b mqtt/ssl_ds: use larger partition table in the example 2025-07-23 19:53:54 +08:00
Aditya Patwardhan
a519699588 fix(mqtt): Increased partition size to fix build failure 2025-07-23 15:38:33 +05:30
Xiao Xufeng
6cb9214520 wss_server: use large partition table config 2025-06-18 12:30:24 +08:00
Jiang Jiang Jian
e44e7ce2f9 Merge branch 'bugfix/fix_tls1_3_dynamic_buffer_build_v5.5' into 'release/v5.5'
fix(mbedtls): Fix failing build with TLS1.3 only and dynamic buffer enabled (v5.5)

See merge request espressif/esp-idf!39879
2025-06-17 15:39:50 +08:00
Jiang Jiang Jian
4684d3dffc Merge branch 'bugfix/http_client_test_failure_v5.5' into 'release/v5.5'
fix: update root certificate for postman-echo endpoint (v5.5)

See merge request espressif/esp-idf!39846
2025-06-17 15:02:42 +08:00
Ashish Sharma
156ead0cd5 fix(mbedtls): Fixes failing TLS 1.3 server handshake
Closes https://github.com/espressif/esp-idf/issues/15984
2025-06-16 11:27:48 +05:30
Ashish Sharma
08d78dcd7e fix(esp_tls): fix failing build with TLS1.3 only and dynamic buffer 2025-06-16 09:22:57 +08:00
Mahavir Jain
881c5a9795 fix: update root certificate for postman-echo endpoint
The certificate chain for postman-echo endpoint has switched to
Let's Encrypt root CA
2025-06-13 11:03:24 +05:30
Xiao Xufeng
375d675cdc https_server: use larger partition table in the example 2025-05-20 19:52:07 +08:00
yinqingzhao
79d2bedbf9 fix(wifi): fix build issue by modifying parttion table of file_server example 2025-05-19 21:11:30 +08:00
Ondrej Kosta
eba9549bbc Merge branch 'feat/eth_mac_filter' into 'master'
feat(esp_eth): added option to set MAC filter for mcast

Closes IDF-12503 and IDFGH-14897

See merge request espressif/esp-idf!36944
2025-04-30 19:38:02 +08:00
Mahavir Jain
ff555428d1 Merge branch 'feat/dynamic_buffer_tls1.3' into 'master'
feat(mbedtls): add support for dynamic buffer for TLS1.3

Closes IDFGH-14708, IDF-12469, IDF-9178, and IDF-1725

See merge request espressif/esp-idf!38258
2025-04-30 17:52:43 +08:00
Ondrej Kosta
e941910c0f feat(esp_eth): Added destination MAC address filter configuration interface 2025-04-29 13:54:56 +02:00
Yin Qing Zhao
7141b9558b Merge branch 'feat/chip_esp32c5_eco2_support_wifi' into 'master'
feat/chip esp32c5 eco2 support wifi

Closes IDF-10602, IDF-10616, IDF-10592, IDF-10590, IDF-10605, IDF-10604, IDF-10618, IDF-10617, IDF-10588, IDF-10598, IDF-10609, IDF-10610, IDF-10600, IDF-10589, IDF-10607, IDF-10608, IDF-10596, IDF-12857, IDF-11002, IDF-10601, IDF-10579, IDF-8641, IDF-8640, IDF-8639, IDF-8638, PM-403, AX-1139, AX-1151, AX-1153, AX-1155, WIFIBUG-1159, and WIFIBUG-1146

See merge request espressif/esp-idf!38566
2025-04-28 21:06:18 +08:00