Commit Graph

1046 Commits

Author SHA1 Message Date
muhaidong
6dec1e1351 fix(wifi): add ESP_WIFI_MAX_CONN_NUM-aligned ranges for soft-AP max STA Kconfig 2026-05-19 22:02:54 +08:00
Ashish Sharma
1702f33a3a fix(http_request): fixes failing pytest 2026-05-18 15:12:11 +08:00
Jiang Jiang Jian
7e5beded31 Merge branch 'fix/ws_echo_server_uri_registration_race_v5.4' into 'release/v5.4'
fix(http_server/ws_echo_server): Fix ws_echo_server test URI registration race condition (backport v5.4)

See merge request espressif/esp-idf!47727
2026-05-11 11:01:33 +08:00
Hrushikesh Bhosale
31e9151dcb fix(http_server/ws_echo_server): Fix ws_echo_server test URI registration race condition
The WebSocket echo server tests connect immediately after seeing
'Starting server on port:' in the device log, but URI handlers
(/ws, /auth) are registered asynchronously after the server starts,
taking 40-660ms depending on config and CI load.

Wait for 'Returned from app_main()' before connecting, which
guarantees all URI handlers are registered. Add connection retry
with WebSocketBadStatusException handling to WsClient.

Extract _wait_for_server_ready() helper to deduplicate the WiFi
credential input and server readiness logic.

(cherry picked from commit 7a50e3ab04)
2026-04-17 14:45:37 +05:30
Hrushikesh Bhosale
897cad214a 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
e08f079ce3 feat(http_server): adds example to test server pong response 2026-03-16 16:56:13 +08:00
Fu Hanxi
aacde8f52b Merge branch 'ci/pytest_mark_formatter_v5.4' into 'release/v5.4'
ci: pytest mark formatter (v5.4)

See merge request espressif/esp-idf!46228
2026-03-12 09:59:10 +01:00
Bogdan Kolendovskyy
81f7247a90 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-03-11 16:38:10 +01:00
Evgeny Torbin
f7395255da test: format all test scripts 2026-03-11 07:34:34 +01:00
Mahavir Jain
d780a2e946 Merge branch 'bugfix/esp_local_ctrl_arg_check_v5.4' into 'release/v5.4'
fix(esp_local_ctrl): validate payload_case matches msg_type in command dispatcher (v5.4)

See merge request espressif/esp-idf!45926
2026-02-27 09:43:23 +05:30
Mahavir Jain
f0706727a4 docs(protocomm): recommend using security2 scheme for production purpose 2026-02-17 11:47:24 +05:30
hrushikesh.bhosale
4c8a024dc8 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:26:45 +05:30
hrushikesh.bhosale
af5a62b455 fix(esp_http_client): Fixed the example pytest
Pytest was expect the positive content length for async req
2026-01-27 17:08:21 +05:30
Ondrej Kosta
5987de7951 feat(ci): updated Ethernet tests to align with new runners 2025-12-02 10:29:38 +01:00
hrushikesh.bhosale
6bdf491318 fix(http_server): Fixed response status code for temporary redirect
Closes https://github.com/espressif/esp-idf/issues/17791
2025-11-04 15:05:20 +05:30
Ondrej Kosta
bfe27eb506 fix(examples): fix version ref. to ethernet_init in static_ip example 2025-10-21 10:09:13 +02:00
Mahavir Jain
a301c06b4c Merge branch 'feat/support_authentication_feature_for_ws_v5.4' into 'release/v5.4'
Added pre handshake callback for websocket (v5.4)

See merge request espressif/esp-idf!41038
2025-09-02 09:18:37 +05:30
hrushikesh.bhosale
09bc497e1e 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:28 +05:30
hrushikesh.bhosale
3a7380f5bc 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-06 11:43:22 +05:30
hrushikesh.bhosale
e3b14de2c1 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:27:20 +05:30
Aditya Patwardhan
6c1f794343 fix(mqtt): Increased partition size to fix build failure 2025-07-23 15:38:58 +05:30
Jiang Jiang Jian
f0f2980d05 Merge branch 'bugfix/http_client_test_failure_v5.4' into 'release/v5.4'
fix: update root certificate for postman-echo endpoint (v5.4)

See merge request espressif/esp-idf!39847
2025-06-20 14:18:29 +08:00
wanckl
ea03622621 ci(esp32c61): remove c61 support from readme on 5.4 2025-06-17 15:09:40 +08:00
Mahavir Jain
96eb236610 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:05:38 +05:30
hrushikesh.bhosale
ccdd373eca fix(esp_http_server): Async handler example stack overflow fix
1. In async handler example, on hitting /long URI and closing the
connection forcefully from client (example ctrl + c) cause more stack
size (almost 200 bytes) than successfull request.
2. The connection should be closed from the server as soon as the client
closes the connect (i.e. handler should return ESP_FAIL to close the
connection)
2025-05-09 10:18:13 +05:30
wuzhenghui
33aca83c63 change(ci): remove esp32c5 from readme since esp32c5 skipped CI build 2025-04-25 17:13:27 +08:00
harshal.patil
dcd80b2528 fix(examples): Example CA certs must contain the Key Usage parameter
- Example CA certificates that are used for self-signed client certificates
need to include the Key Usage parameter.
- Python3.13 changed the default context of the SSL context that is
generated using ssl.create_default_context() by enabling the VERIFY_X509_STRICT
flag by default
2025-04-03 10:51:09 +05:30
Roland Dobai
215d90a87a Merge branch 'fix/fix_kconfig_files_v5.4' into 'release/v5.4'
fix(kconfig): Fix issues with Kconfig files (v5.4)

See merge request espressif/esp-idf!37575
2025-03-31 16:10:25 +08:00
Mahavir Jain
2469db58a9 fix(esp_local_ctrl): update for changes in protocomm security2 scheme 2025-03-10 09:29:44 +05:30
Jan Beran
f943491014 fix(kconfig): Fix issues with Kconfig files 2025-03-07 11:31:37 +01:00
Ondrej Kosta
7b1648f004 fix(esp_eth): fixed Static IP example for Ethernet
Fixed IP event handler unregistering for Ethernet
2025-02-12 13:55:20 +00:00
David Cermak
d715abb8fd fix(lwip): Fix ping session calling thread unsafe API
Closes https://github.com/espressif/esp-idf/issues/14982
2025-01-14 11:25:31 +01:00
Marek Fiala
b37383f75b feat(tools): Enforce utf-8 encoding with open() function 2025-01-10 13:52:58 +08:00
Shu Chen
89e47be331 Merge branch 'feat/example_connect_thread_v5_4' into 'release/v5.4'
feat(protocol_examples_common): Add Thread connect to support Thread for the protocol examples(v5.4)

See merge request espressif/esp-idf!36090
2025-01-07 10:34:12 +08:00
aleks
e5c7999f08 fix(modbus): Fix the mode setup in modbus slave
https://github.com/espressif/esp-idf/pull/14878
2025-01-03 14:09:24 +01:00
Kabir Waraich
6925877bea Update slave.c to fix the mode
There is an issue in the lines that I have changed. I think it was copied over from the enum by mistake.
2025-01-03 14:09:12 +01:00
WanqQixiang
c5a9e39653 feat(protocol_examples_common): Add Thread connect to support Thread for the protocol examples 2024-12-31 14:22:31 +08:00
David Cermak
f75e399139 fix(lwip): Fix IP6 raw socket checksum in IPv6-only configuration
* Update submodule: git log --oneline f150e232..c816f0ee
  - sockets: Make IPv6 only netconn type IPv6 aware (espressif/esp-lwip@c816f0ee)
  - test: Make test application scalable (espressif/esp-lwip@3ec12c3b)
  - dns: Handle active DNS entries before clearing cache (espressif/esp-lwip@b15cd2de)
2024-11-21 11:24:30 +01:00
harshal.patil
8b8956f7ed ci(examples/protocols): Run the https x509 bundle default crt bundle stress test using QEMU 2024-11-05 13:31:48 +05:30
nilesh.kale
3e1534e2f7 fix(esp_https_server): added default config for https_server example to set header size to 1024 2024-10-22 12:20:00 +05:30
Aditya Patwardhan
24c82a95a4 Merge branch 'bugfix/python_test_failed_locally_for_https_server' into 'master'
fix: updated pytest for https_server example as per config option

See merge request espressif/esp-idf!33986
2024-10-16 18:23:50 +08:00
Jiang Jiang Jian
8711b55bec Merge branch 'mqtt_custom_outbox_ci' into 'master'
Set partition to large for c6 on custom outbox example

See merge request espressif/esp-idf!34082
2024-10-12 14:29:15 +08:00
Aditya Patwardhan
6a29351bd0 Merge branch 'bug/ci_test_https_server_file_serving' into 'master'
fix(protocols): Erased the storage partition for http_server ci test

Closes IDFCI-2392

See merge request espressif/esp-idf!34083
2024-10-11 14:58:06 +08:00
Euripedes Rocha
5ccc9d1978 ci(mqtt): Set partition to large for c6 on custom outbox example
Example failed to build on CI for c6 target due to partition size.
2024-10-10 10:49:36 +02:00
hrushikesh.bhosale
3dc0f88dc6 fix(protocols): Erased the storage partition for http_server ci test
Added api to erase storage partition for http_server ci test
2024-10-10 14:11:18 +05:30
harshal.patil
0702fb82b0 ci(examples/protocols): Add more testing connections in the x509 bundle example
- This adds a test to try connecting to the domains that use the
most common certificate authorities with the default full cert bundle
2024-10-09 16:08:35 +05:30
nilesh.kale
0797f580bc fix: updated pytest for https_server example as per config option 2024-10-09 15:56:42 +05:30
David Čermák
07400d348c Merge branch 'feat/wifi_remote_with_hosted' into 'master'
fix(examples): esp_hosted as default for Wi-Fi connect on P4

See merge request espressif/esp-idf!33213
2024-09-30 15:37:40 +08:00
Alex Lisitsyn
01dcc49a0d feature modbus add support esp32c61 2024-09-25 11:42:45 +08:00
Ondrej Kosta
2653ed5318 Merge branch 'feat/spi_eth_c61' into 'master'
feat(esp_eth): added SPI ETH defaults for C61 in examples

Closes IDF-9298

See merge request espressif/esp-idf!33559
2024-09-24 17:12:49 +08:00