Commit Graph

867 Commits

Author SHA1 Message Date
David Cermak
38dec0be48 esp-netif: Support non-lwip mode, add test
It is required to define a mandatory dependency on lwip, so we
introduced esp_netif_stack component and made it require lwip, instead
of directly depending on lwip.
This enables building w-out lwip and support other TCP/IP stacks.
2022-12-14 14:12:50 +00:00
Chen Yudong
df92048180 CI: fix ipv6 test failed on some runners 2022-12-14 15:58:49 +08:00
Laukik Hase
184c09ea81
protocols/security: Remove -Wno-format compile option for examples 2022-12-07 13:02:00 +05:30
Song Ruo Jing
7466ddfa8c ci: Make consistence between pytest_*.py and .build-test-rules.yml for esp32c6 (i.e. to pass check_test_scripts_build_test_rules.py) 2022-11-28 11:58:30 +08:00
Harshit Malpani
3276054810 Merge branch 'feature/upgrade_components_version' into 'master'
Feature/upgrade components version

Closes IDF-6192

See merge request espressif/esp-idf!20965
2022-11-11 18:37:30 +08:00
Harshit Malpani
5ff6dbba85
cbor: Update cbor component version in idf_component.yml file in example 2022-11-09 18:03:26 +05:30
Armando
aba9f80cd2 partition: use esp_partition_munmap instead of spi_flash_munmap 2022-11-09 20:15:17 +08:00
Mahavir Jain
960a84db47 Merge branch 'fix/esp_http_client_fix_behavior_disable_auto_redirect_enabled' into 'master'
fix: esp_http_client fix behaviour when disable_auto_redirect is enabled

Closes IDF-6136

See merge request espressif/esp-idf!20805
2022-11-04 20:38:24 +08:00
Martin Vychodil
c9c7573f71 Storage: Partition APIs moved to the new component 'esp_partition'
All the partition handling API functions and data-types were moved from the 'spi_flash' component to the new one named 'esp_partition'. See Storage 5.x migration guide for more details
2022-11-02 21:54:45 +01:00
Mahavir Jain
4e3c2cc456 Merge branch 'bugfix/fix_https_x509_example' into 'master'
ci: fix https_x509 example

See merge request espressif/esp-idf!20371
2022-11-02 19:40:41 +08:00
Harshit Malpani
22f3db0189
ci: fix https_x509 example 2022-11-02 14:57:14 +05:30
morris
84be4db4e5 Merge branch 'contrib/github_pr_10087' into 'master'
fixed url to console component (GitHub PR)

Closes IDFGH-8642

See merge request espressif/esp-idf!20896
2022-11-02 16:02:29 +08:00
morris
8d637ec985 doc: redirect console page
Previous the console doc is moved from api-guide to api-reference, which
broken the URL as well, this commit added a redirect link to ensure the
old URL can still work.
2022-11-02 14:21:57 +08:00
Song Ruo Jing
2557e24a28 ci: Enable esp32c6 example, test_apps, and unit tests CI build stage 2022-11-01 11:23:21 +08:00
harshal.patil
5feb4696be fix: esp_http_client fix behaviour when disable_auto_redirect is enabled 2022-10-27 14:04:54 +05:30
harshal.patil
f9db1ec366 esp_local_ctrl: added sec1 and sec2 support in esp_local_ctrl example 2022-10-14 17:04:08 +05:30
yuanjianmin
a839121285 ci: Fix mqtt broker is not available 2022-09-30 10:07:19 +08:00
Mahavir Jain
13a34affc6 Merge branch 'bugfix/fix_https_request_example' into 'master'
example: Updated https_request example to fail when time is not synced.

See merge request espressif/esp-idf!19701
2022-09-21 16:10:30 +08:00
David Čermák
720cc883d1 Merge branch 'tcp_transport_client_example' into 'master'
Create TCP Client using TCP TRANSPORT instead of socket

See merge request espressif/esp-idf!18429
2022-09-20 17:53:50 +08:00
Harshit Malpani
c351548ca5
Update pytest example for https_request to erase flash before start of test 2022-09-19 12:04:09 +05:30
Harshit Malpani
eb47729301
example: Updated https_request example to fail when time is not synced.
Also added additional server for syncing time
2022-09-19 12:04:09 +05:30
AndriiFilippov
1befb078cd Create TCP Client using TCP TRANSPORT instead of socket
Update error logs with returned values. Add transport_tcp_init() error check.Clean up
2022-09-15 14:26:21 +02:00
Abhik Roy
b3c39d2324 examples/socket: Fix for send() failure handling.
Closes https://github.com/espressif/esp-idf/issues/9475
2022-09-09 13:03:23 +05:30
Aditya Patwardhan
6c7fd1edc0 mqtt/ssl_ds: Remove unwanted references to configure_ds.py, Also updated
the DS documentation
2022-08-30 10:54:15 +05:30
Aditya Patwardhan
41707d0f17 mqtt/ssl_ds: Add documentation on how to use esp-secure-cert-tool with
the example
2022-08-29 13:06:21 +05:30
Aditya Patwardhan
8387725c4f mqtt/ssl_ds example: Update the code to use esp_secure_cert component 2022-08-29 10:53:17 +05:30
Aditya Patwardhan
d64bda5946 mqtt/ssl_ds example: Remove configure_ds.py script, use
esp-secure-cert-tool instread
2022-08-29 10:53:17 +05:30
Ivan Grokhotkov
c6e9a0c350
esp_common: make esp_err_to_name and ESP_ERROR_CHECK usable on Linux 2022-08-18 18:16:45 +02:00
David Čermák
fbc32c0312 Merge branch 'examples/tcp_client_linux_support' into 'master'
tcp_client example: support for Linux target.

Closes IDF-5636

See merge request espressif/esp-idf!19203
2022-08-18 12:40:37 +08:00
David Čermák
8033878507 Merge branch 'bugfix/esp_netif_remove_slip' into 'master'
esp_netif: Migrate SLIP interface to user-space

Closes IDF-5678

See merge request espressif/esp-idf!19202
2022-08-18 03:53:30 +08:00
Abhik Roy
933a2a69fe tcp_client example: support for Linux target. 2022-08-16 23:48:18 +05:30
David Cermak
1f7b2d4860 Examples: Remove SLIP protocol example 2022-08-16 14:08:15 +00:00
David Cermak
83b8556f10 esp_netif: Migrate SLIP interface to user-space 2022-08-16 14:08:15 +00:00
Harshit Malpani
f1aa0eb15b example: Add coap_client example_test 2022-08-16 09:52:00 +05:30
simon.chupin
35dda59209 tools: remove the dependency on the future package 2022-08-09 16:46:58 +02:00
Ivan Grokhotkov
e596c84d49 build system: re-add -Wno-format as private flag for some example components 2022-08-03 16:42:47 +04:00
Mahavir Jain
9b518380b2 Merge branch 'contrib/github_pr_9452' into 'master'
coap: Update examples to use latest features of libcoap component (GitHub PR)

Closes IDFGH-7934

See merge request espressif/esp-idf!19308
2022-08-01 16:35:24 +08:00
Jon Shallow
98d346a81e coap: Update examples to use latest features of libcoap component
Support libcoap build with Client Only or Server Only code.
2022-07-28 13:11:52 +00:00
yuanjm
7dcc29d0be Add mqtt5 build test rules 2022-07-28 06:24:43 +00:00
yuanjm
196831efa8 example: Add mqtt5 example 2022-07-28 06:24:43 +00:00
David Čermák
36f49f361c Merge branch 'bugfix/esp_netif_clean_deps_lwip' into 'master'
esp-netif/lw-ip: Make dependencies one-directional

Closes IDF-4459, IDF-4460, IDF-1099, and IDFGH-6287

See merge request espressif/esp-idf!18084
2022-07-21 20:18:05 +08:00
Abhik Roy
757a171e39 Merge branch 'example/icmpv6_ping' into 'master'
icmpv6_ping example code formatting.

See merge request espressif/esp-idf!19136
2022-07-21 03:32:02 +08:00
David Cermak
5c383d7b73 esp_netif/lwip: Fix deps cycles to "lwip -> esp_netif -> phy-drivers"
Fix dependency tree so that lwip doesn't depend on any specific network
interface component.
Network interface drivers shall depend on esp_netif.
esp_netif shall depend on lwip (but not on any specific interface
driver) -- it optionally depends on vfs and esp_eth (need ethernet
header for L2/bridge mode)
2022-07-20 14:59:07 +02:00
David Čermák
e7ccaaf9ca Merge branch 'feature/update_mqtt_client' into 'master'
[MQTT] - Updates esp_mqtt configuration struct

See merge request espressif/esp-idf!18101
2022-07-20 19:52:04 +08:00
Abhik Roy
8ab028c85e icmpv6_ping example code formatting. 2022-07-20 12:14:59 +05:30
Mahavir Jain
0c09406173
examples/cbor: keep newlib nano disabled in the example
CBOR parsing fails with newlib nano configuration, observed on ESP32-C2.

Closes IDFCI-1375
2022-07-19 13:27:51 +05:30
David Čermák
d1dc30fd70 Merge branch 'example/icmpv6_ping' into 'master'
examples: Add ICMPv6 Echo Request/Reply example.

See merge request espressif/esp-idf!18731
2022-07-19 05:04:02 +08:00
Abhik Roy
25c310b3da examples: Add ICMPv6 Echo Request/Reply example.
Added example to create a raw ICMPv6 socket and sends an ICMPv6 Echo-Request
to the destination ipv6 address and wait for Echo-Reply for esp32 and Linux target.
2022-07-18 12:13:23 +05:30
Euripedes Rocha
ff1c405ed1 [MQTT] - Updates esp_mqtt configuration struct
- Layered config struct
- Fix examples.
2022-07-15 12:32:50 -03:00
Chen Yudong
d54e1e8379 CI: make sure that reading of the ipv4 address has finished 2022-07-15 14:21:39 +08:00
Chen Yudong
2f75733ad7 CI: Improve common test methods
also fix ota test cases
2022-07-15 14:21:34 +08:00
Chen Yudong
692fbc169c CI: use ssid password from stdin for pytest cases 2022-07-15 01:16:36 +08:00
Chen Yudong
4313ff4655 CI: input ssid password depends on sdkconfig 2022-07-15 01:16:36 +08:00
Chen Yudong
472ac26712 CI: update test cases to use different environment variables
change test environments
optimize asio udp server test
fix icmp echo test case
use ethernet_router env to run iperf test cases
2022-07-15 01:16:35 +08:00
Chen Yudong
4d9393fc53 example: use example common componments in esp_local_ctrl 2022-07-15 01:16:35 +08:00
Chen Yudong
9575f03b8d CI: fix ip address checker and trace log 2022-07-15 01:16:35 +08:00
Chen Yudong
bf0e4943be common_components: add wifi connect console commands 2022-07-15 01:16:27 +08:00
Fu Hanxi
7b5a3af407 Merge branch 'feat/reorg_examples' into 'master'
feat: new find_build_apps rules with centralized manifest file

Closes IDFCI-1061, IDF-3553, IDFCI-941, IDFCI-1359, and IDFCI-1361

See merge request espressif/esp-idf!18299
2022-07-14 20:04:12 +08:00
Fu Hanxi
c0568611dd docs: changes docs supported targets tables 2022-07-14 08:26:32 +08:00
Fu Hanxi
05d2357062 feat: use standalone project idf-build-apps for find/build apps utils 2022-07-14 08:26:31 +08:00
Laukik Hase
aa30b2ddbe
esp_local_ctrl/scripts: Removed python2 compatibility 2022-07-13 17:58:40 +05:30
Aditya Patwardhan
1e90632639
esp_local_ctrl/scripts: Update the script to use async methods 2022-07-13 17:30:06 +05:30
David Čermák
8417079218 Merge branch 'component/asio_migration' into 'master'
ASIO: Remove internal component, examples, test and docs

Closes IDF-4625

See merge request espressif/esp-idf!18297
2022-07-05 21:26:48 +08:00
David Čermák
e4928d2751 Merge branch 'bugfix/ci_lwip_sntp_2_servers' into 'master'
ci/lw-ip: Use 2 SNTP public servers in CI config

See merge request espressif/esp-idf!18795
2022-07-05 17:23:47 +08:00
xueyunfei
b569f4069a bugfix for add ttl for ping socket 2022-07-05 11:37:41 +08:00
gabsuren
79d3655106 ASIO: Remove internal component, examples, test and docs 2022-07-04 22:15:24 +04:00
David Cermak
d06d7deacd ci/lwip: Use 2 SNTP public servers in CI config 2022-07-01 05:23:53 +00:00
gabsuren
d413a71f61 mdns: Remove internal component, examples, test and docs 2022-06-29 17:30:34 +04:00
Aditya Patwardhan
a191ca21d9 esp_local_ctrl: Increase timeout of first read to minimize test failures 2022-06-28 03:48:03 +00:00
Jakob Hasse
d7cceabbb4 Merge branch 'feature/upgrade_c_cxx_standards' into 'master'
build system: use C17 and C++2a by default

Closes IDF-1499, IDFGH-1788, IDFGH-2781, and IDFGH-7617

See merge request espressif/esp-idf!18371
2022-06-20 12:24:08 +08:00
yuanjm
63ed429a49 fix(example): Fix wss_server_example not close socket
Closes https://github.com/espressif/esp-idf/issues/9163
2022-06-20 03:01:38 +00:00
Ivan Grokhotkov
157247f98f
asio: fix example for compatibility with C++20
Fix deprecated-enum-enum-conversion warning when compiling the
example with C++20
2022-06-17 16:44:17 +02:00
Aditya Patwardhan
f2cce5fa0d wifi_provisioning: Update the APIs with reference to the new APIs from protocomm
esp_local_ctrl: Update the code with reference to new changes in protocomm component
2022-06-17 13:16:20 +00:00
Laukik Hase
2dea0e833a
ci: Fix mqtt_qos1 example test failure
- Updated log levels of some tags in mqtt/tcp example
  - Updated mqtt/tcp example test to work with WiFi
2022-06-15 14:16:44 +05:30
yuanjm
16cf6d7bf3 ci: Add PING test for ci 2022-06-08 16:30:51 +08:00
yuanjm
b9b1a7aba8 fix(websocket): Support handler deal with PING and CLOSE frame
Closes https://github.com/espressif/esp-idf/issues/8803
2022-06-08 16:16:57 +08:00
Mahavir Jain
34fb03b049 Merge branch 'feature/http_example_pytest_migration' into 'master'
http example pytest migration

See merge request espressif/esp-idf!18053
2022-06-06 20:13:01 +08:00
Harshit Malpani
83ace52a36 http examples pytest migration 2022-06-03 16:00:52 +05:30
Harshit Malpani
e83f801462 Update examples README to include esp32c2 as supported device. 2022-06-03 15:31:05 +05:30
morris
aa3ddbc3c6 Merge branch 'test/enable_c2_target_tests' into 'master'
ci: enable target tests for ESP32-C2

Closes IDF-4989

See merge request espressif/esp-idf!18182
2022-06-03 16:41:24 +08:00
David Čermák
46e599c56d Merge branch 'feature/lwip_rework_patches' into 'master'
lw-IP: Reworked patches

Closes IDFGH-6197

See merge request espressif/esp-idf!17388
2022-06-03 15:26:55 +08:00
Michael (XIAO Xufeng)
f7be540222 ci: partially enable example build for esp32c2 2022-06-02 14:17:31 +08:00
Djordje Nedic
facab8c5a7 tools: Increase the minimal supported CMake version to 3.16
This updates the minimal supported version of CMake to 3.16, which in turn enables us to use more CMake features and have a cleaner build system.
This is the version that provides most new features and also the one we use in our latest docker image for CI.
2022-06-01 06:35:02 +00:00
Harshit Malpani
5a51af523c https examples pytest migration 2022-05-27 10:27:00 +05:30
Marius Vikhammer
425c9e5b0f Merge branch 'feature/target_kconfig_movement_3' into 'master'
kconfig: move remaining kconfig options out of target component

Closes IDF-3579

See merge request espressif/esp-idf!18046
2022-05-24 08:45:01 +08:00
Mahavir Jain
5d88df658d Merge branch 'feature/esp-tls_optimize_memory' into 'master'
esp-tls: add api to free client session

Closes AEG-57

See merge request espressif/esp-idf!18103
2022-05-24 02:53:59 +08:00
Marius Vikhammer
0687daf2c8 kconfig: move remaining kconfig options out of target component
The kconfig options are moved to the component where they are used,
mostly esp_hw_support and esp_system.
2022-05-23 17:57:45 +08:00
Mahavir Jain
b54fc7ecd5 Merge branch 'feature/esp_local_ctrl_example_pytest_migration' into 'master'
esp local ctrl example pytest migration

See merge request espressif/esp-idf!18051
2022-05-23 17:06:21 +08:00
Li Jingyi
9b766b851a example: https_request update free client session api 2022-05-23 16:28:40 +08:00
Laukik Hase
6ad25f991d
https_mbedtls: Prefer TLS 1.3 connection when enabled over TLS 1.2
Closes https://github.com/espressif/esp-idf/issues/8960
2022-05-23 09:51:57 +05:30
Li Jingyi
0cdee37630 https_server: add mbedtls dynamic buffer function test 2022-05-20 11:21:48 +00:00
David Čermák
8153695192 Merge branch 'contrib/github_pr_8962' into 'master'
Update echo_example_main.c (GitHub PR)

Closes IDFGH-7382

See merge request espressif/esp-idf!18126
2022-05-20 04:14:48 +08:00
David Cermak
b0e4ae4a5e examples: Minor fixes in udp_nulticast socket examples
Make sure that IPv6 mapped IPv4 addresses are not used when using
vanilla lwip
2022-05-18 17:10:42 +02:00
Harshit Malpani
63b1b1bd44 esp_local_ctrl example pytest migration 2022-05-17 15:23:22 +05:30
David McCurley
58db82c764
Update echo_example_main.c
Fixed compile error in example.  `error: designator order for field 'esp_ping_callbacks_t::cb_args' does not match declaration order in 'esp_ping_callbacks_t'`. Moved `.cb_args` in example to match declaration.
2022-05-16 11:30:55 -05:00
Harshit Malpani
57e2e7a27c Migrate cbor example to pytest framework 2022-05-13 04:41:00 +00:00
Ondrej Kosta
1a20b10fd3 Examples: common source for GPIO range in Kconfigs defined 2022-05-12 09:33:40 +02:00
Mahavir Jain
af1f342ee8 Merge branch 'fix/make_esp_tls_t_private' into 'master'
Make esp_tls_t as private structure

Closes IDF-2812

See merge request espressif/esp-idf!17812
2022-05-12 14:47:42 +08:00
Harshit Malpani
2c56c6cad8 Updated coding style and added error logs 2022-05-11 08:58:01 +00:00
Nathan Phillips
e8e63a06e8 Don't ignore return value of httpd_stop 2022-05-11 08:58:01 +00:00