Commit Graph

918 Commits

Author SHA1 Message Date
David Cermak
6077c3f70c fix(examples): Fix usage of SNTP netif API in examples 2023-11-03 11:18:32 +01:00
Zim Kalinowski
c5ae121bac Merge branch 'bugfix/fix-clean-up-in-error-condition-in-http-example' into 'master'
fix(example/http): Fixed potential memory leak/crash in when handling error condition

See merge request espressif/esp-idf!26060
2023-10-26 18:11:20 +08:00
Zim Kalinowski
d63f83d279 fix(example/http): Fixed potential memory leak/crash in when handling error condition 2023-10-25 14:44:06 +02:00
Harshit Malpani
2da0b61374
fix: Update https_mbedtls example to fix TLS v1.2 connection 2023-10-23 16:23:18 +05:30
Aditya Patwardhan
7b8a2e8119 Merge branch 'fix/https_request_example_build_with_esp_wolfssl' into 'master'
fix(esp-tls): Fix the https_request example build for esp-wolfssl

See merge request espressif/esp-idf!26576
2023-10-20 22:31:14 +08:00
Aditya Patwardhan
7e6f4d4e87 fix(esp-tls): Fix the https_request example build for esp-wolfssl 2023-10-20 13:43:18 +05:30
Alex Lisitsyn
c5b2291eea modbus: fix -wno-format issues in the examples 2023-10-20 15:27:33 +08:00
Zim Kalinowski
fa1a3ce0b5 Merge branch 'refactor/components_linux_compatible' into 'master'
Exclude all currently incompatible components from Linux build

Closes IDF-8318 and IDF-5996

See merge request espressif/esp-idf!25598
2023-10-18 20:17:49 +08:00
David Čermák
210f757835 Merge branch 'fix/esp_netif_lock' into 'master'
fix(esp_netif): Lock netif list with TCPIP context

Closes IDFGH-11088

See merge request espressif/esp-idf!26164
2023-10-17 21:36:39 +08:00
Jakob Hasse
548022fbe6 refactor(linux): excluded all non-Linux components from build
* All components which won't build (yet) on Linux are excluded.
  This enables switching to Linux in an application without
  explicitly setting COMPONENTS to main in the main
  CMakeLists.txt.
* ESP Timer provides headers for Linux now
* automatically disabling LWIP in Kconfig if it is not available

doc(linux): brought section
  "Component Linux/Mock Support Overview" up to date
2023-10-16 17:06:54 +08:00
Fu Hanxi
4dbf8c8948
ci: remove ttfw related files 2023-10-16 10:23:09 +02:00
David Cermak
88d18e9a40 fix(esp_netif): Mark esp_netif_next deprecated and fix usages
* Uses netif_find_if() in IPv6 examples
* Fixes esp_netif_next() usage in L2TAP
2023-10-13 15:56:45 +02:00
Euripedes Rocha
2f46d9686d feat(mqtt/example): Adds custom outbox example
Adds example presenting how to customize esp-mqtt outbox.
2023-10-11 14:07:07 +02:00
Jakob Hasse
ac2515e199 refactor(lwip): Added on/off switch for LwIP stack
* This switch allows applications to replace lwip with a different
  IP stack or just make it build if it is a dependency but not
  actually needed.
2023-09-22 10:03:13 +08:00
Harshit Malpani
0798691bf0
fix: Fix protocols example to build without setting target
Protocol examples used to raise an error if the target was not set
and `idf.py build` command was used. This commit fix this error
and when IDF_TARGET is not set, ESP32 is selected as default target
2023-09-20 17:50:16 +05:30
Ivan Grokhotkov
6d87100a70
feat(examples): add local components via idf_component.yml
Specifying all the dependencies (managed and local) in the manifest
makes it easier for users to see every component the example
depends on.
2023-09-19 10:38:24 +02:00
Rocha Euripedes
10c21f704c Merge branch 'bugfix/module_logging_tag_lower_case' into 'master'
mqtt: unite supported components tags under common structure

See merge request espressif/esp-idf!22418
2023-09-05 14:06:33 +08:00
Armando
6f412393b6 change(ci): add todo to p4 build test enable 2023-08-24 12:51:19 +08:00
Armando
7dbd3f6909 feat(ci): Enable p4 example, test_apps and unit tests CI build 2023-08-24 12:51:19 +08:00
Michael (XIAO Xufeng)
47c153b949 Merge branch 'ci/pre-commit-check-build-test-rule-exist' into 'master'
pre-commit: add check that build-test-rule paths must exist

See merge request espressif/esp-idf!25231
2023-08-17 02:25:45 +08:00
Mahavir Jain
ea3bb21cf7
fix(esp-tls): fix the certificate check failure logging for cert bundle case
For ESP certificate bundle case, the certificate failure error from
underlying TLS stack was not being tracked. Added the fix and also
updated example code showcasing how to retrieve it.

Closes https://github.com/espressif/esp-idf/issues/12034
2023-08-11 17:27:01 +05:30
Xiao Xufeng
f51258ec18 ci(pre-commit): add check that build-test-rule paths must exist 2023-08-11 17:04:35 +08:00
Andrii
6a42266795 fix(mqtt): Unite supported components tags under common structure 2023-08-10 09:06:16 +00:00
Chen Yu Dong
92db3563a0 Merge branch 'ci/add_new_wifi_ap_runners' into 'master'
ci(wifi): add more wifi runners

See merge request espressif/esp-idf!24931
2023-07-26 20:27:01 +08:00
Chen Yudong
9aa23a4320 ci(wifi): add more wifi runners
sockets: add ipv6 only test
2023-07-24 18:09:55 +08:00
hwqchi
ebc118b24d
fix: Fixed following issues in esp_http_client examples
1. Fix potential out-of-bounds access when calling `strlen(local_response_buffer)`
   if `content_length` is greater than or equal to the length of `local_response_buffer`
   due to missing the terminator `\0` at the last character position.
2. Fix the residual data issue when the previous request is longer than the subsequent
   request while outputting the `local_response_buffer` for each request in the
   `http_rest_with_url()` function.

Signed-off-by: Harshit Malpani <harshit.malpani@espressif.com>
2023-07-24 12:17:28 +05:30
Harshit Malpani
7645723127
fix(ci): update HTTP client example tests runner assignment
HTTP client example tests now connect with locally hosted httpbin service
for more stable results across multiple runs
2023-07-21 10:55:25 +05:30
Chen Yudong
ec39de3992 change(esp_prov): also remove print_function from esp_prov 2023-07-19 21:05:30 +08:00
Harshit Malpani
8507b3ba1b
fix: Add more ciphersuites in https_request example
MBEDTLS_TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 ciphersuite support
seems to be removed from howsmyssl.com. Add more ciphersuites in
server_supported_ciphersuites in https_request example to fix failures
while connecting to howsmyssl.
2023-07-17 11:08:32 +05:30
Harshit Malpani
c24d012808
remove(http2_request): Move http2_request example to idf-extra-components repository
Related: https://github.com/espressif/idf-extra-components/pull/193/
2023-07-03 17:46:16 +05:30
Mahavir Jain
90290507fb
fix(mbedtls): Build issue in dynamic buffer feature
Fix build issue in mbedTLS dynamic buffer feature with
`CONFIG_MBEDTLS_DHM_C` enabled case. Also added a build
configuration for the test coverage.

Closes https://github.com/espressif/esp-idf/issues/11770
2023-06-29 13:30:30 +05:30
Harshit Malpani
d9e8aca7ee
remove(coap)!: Move CoAP examples to idf-extra-components repository
Related:
https://github.com/espressif/idf-extra-components/pull/188
2023-06-27 11:16:21 +05:30
Alex Lisitsyn
16d9ba59f3 Merge branch 'feature/modbus_add_support_esp32h2' into 'master'
examples: modbus add support for target esp32h2

See merge request espressif/esp-idf!23905
2023-06-26 21:57:59 +08:00
Mahavir Jain
8d589d758e Merge branch 'ci/fix_failures_in_esp_http_client_example' into 'master'
CI: fix esp_http_client example failures in CI. Timeout was observed in the...

Closes IDFCI-1689

See merge request espressif/esp-idf!23274
2023-06-26 11:23:45 +08:00
Harshit Malpani
20ed23bcd0
CI: fix esp_http_client example failures in CI. Timeout was observed in the logs while performing HTTP requests. Changing the endpoint when testing in CI 2023-06-23 10:32:20 +05:30
aleks
2c7ea7f819 examples: modbus add support for target esp32h2 2023-06-21 09:53:02 +02:00
hwqchi
482f6340b9 esp_http_client: Fix unsigned integer overflow
Fix unsigned integer overflow when `content_length` is -1.
The proposed change is to modify the format specifier for content_length from PRIu64 to PRId64, which will print the signed value as a 64-bit integer instead.
2023-06-21 04:42:03 +08:00
David Čermák
28c643a56d Merge branch 'feature/example_network_wifi_bridge_provisioning' into 'master'
Examples/Network: Add WiFi to Eth/USB bridge example

See merge request espressif/esp-idf!23978
2023-06-16 01:04:32 +08:00
KonstantinKondrashov
e72061695e all: Removes unnecessary newline character in logs
Closes https://github.com/espressif/esp-idf/issues/11465
2023-06-09 03:31:21 +08:00
David Cermak
6edd1be973 Examples/http-server: Make DNS server a simple configurable component 2023-06-07 08:46:24 +02:00
Rocha Euripedes
dc016f5987 Merge branch 'fix/mqtt_esp32h2_examples' into 'master'
protocols/examples: Disable Wifi connection if not supported

See merge request espressif/esp-idf!23970
2023-06-05 13:51:30 +08:00
Euripedes Rocha
4778d9b477 protocols/examples: Disable Wifi connection if not supported
- Disable Kconfig option for Wifi if not supported by the SoC
- Enable building mqtt examples when target is set to esp32h2
2023-05-30 13:26:45 +02:00
yuanjianmin
0b71dcc7ea example: Fix memory leak in ws_echo_server when httpd_queue_work failed
Closes https://github.com/espressif/esp-idf/issues/11507
2023-05-29 10:12:16 +00:00
David Cermak
5abeac9d91 examples: Fix icmp-echo to auto connect to Ethernet/WiFi if selected
Closes https://github.com/espressif/esp-idf/issues/10655
2023-05-25 14:25:09 +00:00
Chip Weinberger
3824eba04d
feat(httpd): add support for asynchronous request handling
This commit adds support for handling multiple requests simultaneously by introducing two new functions: `httpd_req_async_handler_begin()` and `httpd_req_async_handler_complete()`. These functions allow creating an asynchronous copy of a request that can be used on a separate thread and marking the asynchronous request as completed, respectively.

Additionally, a new flag `for_async_req` has been added to the `httpd_sess_t` struct to indicate if a socket is being used for an asynchronous request and should not be purged from the LRU cache.

An example have been added to demonstrate the usage of these new functions.

Closes https://github.com/espressif/esp-idf/issues/10594

Signed-off-by: Harshit Malpani <harshit.malpani@espressif.com>
2023-05-19 10:05:42 +05:30
Mahavir Jain
2688dfe982
tests: update Root certificate for the test endpoints
Use Root certificate (`DigiCert Global Root G2`) for the
`dl.espressif.com` and `espressif.com` test endpoints.

This fixes the test failure introduced due to renewal of
the intermediate certificate.
2023-05-16 15:56:29 +05:30
David Cermak
b2af4d9689 lwip/linux: Add lwip support for networking component under linux
linux/lwip: Wrap some IO posix functions
* to workaourd the FreeRTOS EINTR issue (when building without lwip)
* to correctly choose the sub-system based on fd (when building with
lwip) -- passing control to either linux/system or to lwip
This commit also addapts tapio-if to provide DHCP client by default and
configurable settings for static IP
2023-05-05 05:03:39 +00:00
Mahavir Jain
b5055b9bfa Merge branch 'feature/add_mbedtls_ciphersuites_set_get_api' into 'master'
esp-tls: Add config and api to set and get ciphersuites list

Closes IDF-7183

See merge request espressif/esp-idf!23320
2023-04-28 13:01:59 +08:00
yuanjianmin
3f58b33c7f example: Add example to test ciphersuites set function 2023-04-27 19:22:27 +08:00
Mahavir Jain
873ac173c4
https_mbedtls: update example to support TLS 1.3 connection
- make server verification mandatory (previously it was optional)
- add PSA crypto init API and handling for session ticket event
- coding style fixes
2023-04-25 17:43:58 +05:30