Ivan Grokhotkov
248bc8a346
Merge branch 'feature/modbus_add_esp32c2_esp32c6_targets' into 'master'
...
examples: modbus add esp32c2 esp32c6 targets
See merge request espressif/esp-idf!22017
2023-01-28 00:45:47 +08:00
Alex Lisitsyn
464b6d803c
examples: modbus add esp32c2 esp32c6 targets
2023-01-28 00:45:46 +08:00
Laukik Hase
167618d6a4
examples/protocols: Added URI encoding/decoding feature
...
- http_server/simple: Decoding received query
- esp_http_client: Sending encoded query
2023-01-25 17:47:14 +05:30
Mahavir Jain
8db02b36ac
Merge branch 'bugfix/fix_potential_buffer_overflow_http_client_example' into 'master'
...
esp_http_client example: fix potential buffer overflow while copying data recieved in HTTP response
Closes IDFGH-9027
See merge request espressif/esp-idf!21869
2023-01-23 12:03:51 +08:00
Harshit Malpani
dd490f7915
esp_http_client example: fix potential buffer overflow while copying data recieved in HTTP response
...
Closes https://github.com/espressif/esp-idf/issues/10436
2023-01-20 15:05:41 +05:30
Laukik Hase
45c6631a00
ci: Enable build stage for mqtt/ssl_ds
example for esp32c6
2023-01-19 10:00:00 +05:30
David Čermák
2f1d30d155
Merge branch 'bugfix/lwip_core_locking' into 'master'
...
esp_netif/lwip: Fix core-locking config
Closes IDFGH-8445, IDFGH-9098, and IDFGH-9063
See merge request espressif/esp-idf!20840
2023-01-18 20:31:25 +08:00
David Cermak
a71fa82177
esp_netif/lwip: Fix core-locking config
...
* Fix thread safety issues in non-core locking
* Add option to verify thread safety issues in lwip (core-lock assertion)
* Make esp_sntp.h thread safe API
* Fix sntp examples
* Fix openthread libs
Closes https://github.com/espressif/esp-idf/issues/9908
Closes https://github.com/espressif/esp-idf/issues/10502
Closes https://github.com/espressif/esp-idf/issues/10466
2023-01-17 16:15:58 +01:00
Cao Sen Miao
94120b82c2
esp32h2: add build test
2023-01-17 10:29:04 +08:00
Mahavir Jain
c0c2e3a73a
Merge branch 'fix/esp_local_ctrl_header_incl' into 'master'
...
esp_local_ctrl: Fix header inclusion
See merge request espressif/esp-idf!22033
2023-01-13 23:47:55 +08:00
Laukik Hase
e7efda4709
esp_local_ctrl: Fix header inclusion
...
- Included `sdkconfig.h` and HTTP/S server based headers
explicitly
2023-01-12 16:16:45 +05:30
Chen Yudong
c07d237ffe
examples: enable build esp32c6 for wifi and network examples
2023-01-12 14:50:06 +08:00
Chen Yudong
8aca3932b0
CI: enable more wifi cases
2023-01-06 06:03:52 +00:00
Harshit Malpani
4673556691
tcp_client: Remove components dir from tcp_client example and use esp_stubs from protocols/linux_stubs
2023-01-04 11:20:52 +05:30
Harshit Malpani
5c728e94a7
Update esp_http_client example to build for linux target
2023-01-04 11:20:43 +05:30
Laukik Hase
b3fa7fcf73
esp_local_ctrl: Add support for insecure HTTP server transport
2022-12-23 12:14:25 +05:30
Chen Yu Dong
e0d564fc30
Merge branch 'ci/optimize_some_test_cases' into 'master'
...
Ci: optimize some test cases
See merge request espressif/esp-idf!21729
2022-12-21 22:07:31 +08:00
Suren Gabrielyan
e5926d1b1b
Merge branch 'examples/mqtt_tests_migration_pytest' into 'master'
...
Examples: migration mqtt examples to pytest
See merge request espressif/esp-idf!20957
2022-12-21 21:23:14 +08:00
Chen Yudong
4af4edc3da
CI: fix pattern in test case test_examples_protocol_mqtt5
2022-12-21 10:50:11 +08:00
Suren Gabrielyan
b68203bfb5
Examples: migration mqtt examples to pytest
2022-12-20 17:48:48 +04:00
Chen Yu Dong
e5b318ab71
Merge branch 'ci/fix_socket_ipv6_test' into 'master'
...
CI: Migrate socket example tests to pytest
See merge request espressif/esp-idf!21596
2022-12-20 11:13:09 +08:00
Mahavir Jain
35d2a825c4
Merge branch 'bugfix/fix_httpd_req_cleanup' into 'master'
...
esp_http_server: fix wrong context pointer in httpd_req_cleanup function
Closes IDFGH-8842
See merge request espressif/esp-idf!21320
2022-12-19 14:40:24 +08:00
Chen Yudong
51d2d20f75
example: add socket scripts again
2022-12-16 19:03:25 +08:00
Harshit Malpani
89a56392e3
esp_http_server: fix wrong context pointer in httpd_req_cleanup function
...
Added example which fails without the fix
Closes https://github.com/espressif/esp-idf/issues/10265
2022-12-16 14:40:37 +05:30
Suren Gabrielyan
ec9abc7b02
Examples: update README of socket examples
2022-12-15 14:55:47 +08:00
Chen Yudong
2d006d488c
CI: Migrate socket example tests to pytest
2022-12-15 14:55:42 +08:00
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
Aditya Patwardhan
26a15058d3
Add sdkconfig.h to protocol/https* examples
2022-05-11 07:09:34 +00:00
Aditya Patwardhan
788c9ddf8d
esp_tls: Added getter function for esp_tls ssl ctx.
2022-05-11 07:09:34 +00:00
Erhan Kurubas
ad078c5153
semihosting: drop absolute path support
2022-05-05 09:12:42 +00:00
Mahavir Jain
eef5e73842
Merge branch 'contrib/github_pr_8851' into 'master'
...
Fixed the commented out coap_new_optlist() in the coap_client example. (GitHub PR)
Closes IDFGH-7262
See merge request espressif/esp-idf!17969
2022-05-02 14:53:53 +08:00
Jiang Jiang Jian
96ff900d7d
Merge branch 'Optimize/udp_example_receive_data_with_recvmsg_interface' into 'master'
...
udp example:Optimization udp example with recv_msg
Closes IDFGH-5400
See merge request espressif/esp-idf!17949
2022-04-29 15:03:22 +08:00
Laukik Hase
ba4e318e4c
ci: Re-enable HTTP/2 request example test
2022-04-29 09:55:09 +05:30
nosuz
6127da32e4
Fixed the commented out coap_new_optlist() example in the coap_client example.
...
coap_new_optlist() requires 3 arguments but the example had 2 arguments.
2022-04-28 18:49:55 +09:00
xueyunfei
231ef90fc5
udp example:Optimization udp example with recv_msg
2022-04-28 07:55:28 +00:00
Ivan Grokhotkov
3175e472ba
Merge branch 'bugfix/freertos_esp_timer_deps' into 'master'
...
esp_timer: remove from freertos public requirements
See merge request espressif/esp-idf!17818
2022-04-27 04:13:25 +08:00
David Čermák
b85c44403a
Merge branch 'bugfix/asio_example_config' into 'master'
...
[EXAMPLES/ASIO] Renames Kconfig parameter and clarify
See merge request espressif/esp-idf!17769
2022-04-26 13:24:17 +08:00
Ivan Grokhotkov
708e99497b
global: add dependency on esp_timer component and include esp_timer.h
...
Some components were including esp_timer.h without declaring a
dependency on esp_timer component. This used to work due to a
transitive public dependency on esp_timer from freertos component.
Add explicit dependencies where needed.
Also some source files were using esp_timer functions without
including the header file. This used to work because esp_timer.h was
included from freertos port header file. This commit adds esp_timer.h
includes where needed.
2022-04-25 18:39:23 +02:00
Shubham Kulkarni
7059ea0895
esp_http_client example: Add cert for redirect to HTTPS example
...
esp_http_client_test.py: Add checks for missing example logs
2022-04-22 17:39:12 +05:30
Laukik Hase
f9da23edb9
http_client: Added explicit conversion for esp_tls_error_handle_t
...
- in protocols/esp_http_client example
Closes https://github.com/espressif/esp-idf/issues/8795
2022-04-22 03:42:49 +00:00
Laukik Hase
88c33b52bf
http2_request: Disable build in CI
...
- Tracked by IDF-4916
2022-04-20 12:18:26 +05:30
Laukik Hase
728a686b8a
protocols: Updated examples to use correct API
...
- `http_request` and `https_x509_bundle`
2022-04-20 12:18:26 +05:30
aleks
9fdf39651b
freemodbus: remove component files from esp-idf (fix examples)
2022-04-19 07:23:17 +00:00
Mahavir Jain
ca9f285782
Merge branch 'bugfix/smtp_client' into 'master'
...
smtp_client: Fix heap leakage
Closes IDFGH-7167
See merge request espressif/esp-idf!17777
2022-04-14 20:53:13 +08:00
Laukik Hase
44214a3028
smtp_client: Fixed garbage characters being printed
...
- The R/W buffers were not cleared before reading/writing
anything new
2022-04-14 13:35:02 +05:30
Laukik Hase
4e9bf05091
smtp_client: Fix heap leakage
...
- Freed all allocated resources by Mbed TLS at the end of routine
2022-04-14 12:14:41 +05:30
Euripedes Rocha
232b0eda5f
[EXAMPLES/ASIO] Renames Kconfig parameter and clarify
...
On ip::tcp::resolver ASIO uses service to identify the type of
connection and get the port number. LWIP can't resolve this way.
2022-04-13 11:22:34 -03:00
Mahavir Jain
bc1ec37f92
Merge branch 'fix/use_crt_bundle_in_http2_request_example' into 'master'
...
http2_request_example: Use esp_crt_bundle instead of hardcoded root
Closes IDCCI-1190, IDFCI-1195, and IDFCI-1197
See merge request espressif/esp-idf!17755
2022-04-13 19:17:17 +08:00
Aditya Patwardhan
3b1f1febc8
http2_request_example: Use esp_crt_bundle instead of hardcoded root
...
certificate in order to avoid frequent failure of the example due to
shift in CA chain
2022-04-13 10:34:34 +05:30
Ondrej Kosta
fcdb0306d0
examples: added ESP-NETIF L2 TAP example
2022-04-12 12:33:57 +00:00
Mahavir Jain
467e9c07d6
lwip: fix build with CONFIG_LWIP_DHCPS disabled
...
Also added example build configuration for this option.
2022-04-11 12:31:17 +00:00
Mahavir Jain
021f545f0d
examples: add dependency on cert bundle configuration
...
Refactor examples to build with MBEDTLS_CERTIFICATE_BUNDLE disabled. Only examples
that can work with certificate bundle disabled have been modified here.
2022-04-06 05:10:43 +00:00
Laukik Hase
8f77caa637
https_server: Fix example test failure
...
- Closed the client connection gracefully for the https server
callback check to pass in test
- Made some functions static in the example
2022-03-30 20:45:48 +05:30
Laukik Hase
1d71fbae92
https_server: Add provision for callback at session close
...
Closes https://github.com/espressif/esp-idf/issues/8288
2022-03-30 11:25:11 +05:30
Laukik Hase
d7090b4d52
https_server: Add config option to min. cert. auth mode
...
- Added a config option to set the minimum Certificate Verification
mode to Optional
- When this option is enabled, the peer (the client) certificate
is checked by the server, however the handshake continues even if
verification failed.
- By default, the peer certificate is not checked and ignored by the server.
Closes https://github.com/espressif/esp-idf/issues/8664
2022-03-29 08:57:36 +00:00
Alex Lisitsyn
e653ce82b2
Merge branch 'feature/modbus_master_fix_check_uart_set_pin' into 'master'
...
example/modbus_master: fix the erro check for uart_set_pin
Closes IDFGH-6988
See merge request espressif/esp-idf!17534
2022-03-27 04:20:17 +08:00
David Cermak
965b8f0e62
examples/sntp: Document that SNTP-over-DHCP resets other NTP servers
...
Closes https://github.com/espressif/esp-lwip/issues/42
2022-03-22 15:01:02 +00:00
Elbert van de Put
980fd32f69
example/modbus_master: fix the assert for uart_set_pin
...
Signed-off-by: aleks <aleks@espressif.com>
Closes https://github.com/espressif/esp-idf/pull/8607
2022-03-22 09:45:06 +00:00
Anton Maklakov
6d13c8b3a6
Merge branch 'bugfix/managed-components-version-refs' into 'master'
...
managed components: fix version references to allow implicit updates
See merge request espressif/esp-idf!17438
2022-03-18 14:52:15 +08:00
Anton Maklakov
e27f1331e4
components: correct printf() placeholder for time_t
...
Using C99 %jd, https://en.cppreference.com/w/c/chrono/time_t
2022-03-14 14:05:47 +07:00
Chen Yudong
4dc74c9c42
CI: rename some tests to avoid duplicated test names
2022-03-11 18:38:41 +08:00
Anton Maklakov
4c865baae4
managed components: fix version references to allow implicit updates according to semver
...
Syntax details: https://devhints.io/semver
2022-03-11 13:49:26 +07:00
Mahavir Jain
99e7059cbe
Merge branch 'bugfix/kconfig_defaults' into 'master'
...
kconfig: Changed default values of `bool` configs
Closes IDF-4747
See merge request espressif/esp-idf!17447
2022-03-11 11:48:17 +08:00
Laukik Hase
25c5c214f3
kconfig: Changed default values of bool configs
...
- Some bool configs were using default values true and false,
instead of y and n.
2022-03-10 14:26:37 +05:30
David Cermak
795b7ed993
esp_netif: Remove tcpip_adapter compatibility layer
2022-03-10 08:19:43 +01:00
David Čermák
0b58f987cd
Merge branch 'feature/mdns_dynamic_interfaces' into 'master'
...
mdns: Add support for dynamic network interfaces
Closes IDF-939
See merge request espressif/esp-idf!14875
2022-03-10 15:11:35 +08:00
morris
b841332aa5
Merge branch 'component/esp_websocket_migration' into 'master'
...
websocket: Remove internal component, examples and test
Closes IDF-4076
See merge request espressif/esp-idf!17273
2022-03-09 19:12:55 +08:00
David Cermak
42ba8a8338
mdns: Fix copyright messages, update API descrition
...
* Impove docs and comments on custom netifs
* Make predef interfaces const, minor docs fixes
2022-03-09 07:33:23 +01:00
David Cermak
b02468dc98
mdns: Add API to control custom network interfaces
2022-03-09 07:33:23 +01:00
David Cermak
dd3cd52fd6
CI/mdns: Reworked example test to be run repeatably
2022-03-09 07:33:16 +01:00
David Cermak
d1b809e6a1
CI/mdns: Extend example test for sockets, netifs
2022-03-08 13:46:57 +01:00
David Cermak
bec42ff85d
mdns: Add support for registering custom netif
2022-03-08 13:46:11 +01:00
David Cermak
f8495f1e86
mdns: Indicate interface using esp_netif in search results
2022-03-08 13:44:14 +01:00
David Cermak
f90b3b798b
mdns: Use predefined interfaces to prepare for custom netifs
2022-03-08 13:44:14 +01:00
Suren Gabrielyan
f9892f77b8
mdns: Prepare for dynamic esp-netif support
2022-03-08 13:39:53 +01:00
Mahavir Jain
55fd823001
Merge branch 'contrib/github_pr_8523' into 'master'
...
Removed unnecessary #include statement (GitHub PR)
Closes IDFGH-6903
See merge request espressif/esp-idf!17390
2022-03-08 16:13:08 +08:00
lukedukeus
469be7cc54
Removed unnecessary #include statement
2022-03-07 16:30:37 -05:00
gabsuren
f3c7215565
websocket: Remove internal component, examples and test
2022-03-07 11:07:40 +04:00
Sudeep Mohanty
a9fda54d39
esp_hw_support/esp_system: Re-evaluate header inclusions and include directories
...
This commit updates the visibility of various header files and cleans up
some unnecessary inclusions. Also, this commit removes certain header
include paths which were maintained for backward compatibility.
2022-03-07 11:18:08 +05:30
Ivan Grokhotkov
c8b43ee0c1
Merge branch 'bugfix/sdspi_example_esp32s3' into 'master'
...
examples: sdspi: re-enable for ESP32-S3, add Kconfig options for pins
Closes IDF-4641
See merge request espressif/esp-idf!17067
2022-03-04 18:42:53 +08:00
Ivan Grokhotkov
c8d1737d57
examples: file_serving: add support for ESP32-S3, refactoring
...
* Move filesystem mounting code into a separate file to simplify the
main source file.
* Clean up SDMMC and SDSPI related code. Move pin configuration into
Kconfig.
* Use same base_path ('/data') for either SPIFFS or SD. Remove the
check in file_server.c about the base path.
* Update README according to the changes above.
2022-03-03 21:43:37 +01:00
Jiang Jiang Jian
1068c7720b
Merge branch 'bugfix/ignore_pmf_capable_flag' into 'master'
...
Always connect Station in PMF mode if possible
Closes WIFI-4320
See merge request espressif/esp-idf!17023
2022-03-03 19:34:36 +08:00
Alex Lisitsyn
dcaac79380
Merge branch 'bugfix/modbus_fix_start_after_destroy_issues' into 'master'
...
modbus: fix tcp slave destroy issues
Closes IDFGH-6568
See merge request espressif/esp-idf!16856
2022-03-03 16:34:33 +08:00
Alex Lisitsyn
224901fed3
modbus: fix tcp slave destroy issues
2022-03-03 16:34:33 +08:00
Laukik Hase
3925365351
ci: Fix pre-check
stage failing tests
...
- Updated license headers
- Re-enabled public headers and static analysis checks
- Fix public header file check failure
Co-authored-by: Aditya Patwardhan <aditya.patwardhan@espressif.com>
2022-03-03 01:37:10 +05:30
Aditya Patwardhan
3b71bd7326
mbedtls-3.0: Fixed ESP32 build issues
...
- Added MBEDLTS_PRIVATE(...) wherever necessary
- For functions like mbedtls_pk_parse_key(...), it is necessary to pass the RNG function
pointers as parameter. Solved for dependent components: wpa_supplicant & openSSL
- For libcoap, the SSLv2 ClientHello handshake method has been deprecated, need to handle this.
Currently, corresponding snippet has been commented.
- Examples tested: hello-world | https_request | wifi_prov_mgr
mbedtls-3.0: Fixed ESP32-C3 & ESP32-S3 build issues
- Removed MBEDTLS_DEPRECATED_REMOVED macro from sha1 port
- DS peripheral: esp_ds_rsa_sign -> removed unsused 'mode' argument
- Added MBEDTLS_PRIVATE(...) wherever required
mbedtls-3.0: Fixed ESP32-S2 build issues
- Fixed outdated function prototypes and usage in mbedlts/port/aes/esp_aes_gcm.c due to changes in GCM module
mbedtls-3.0: Fixed ESP32-H2 build issues
ci: Fixing build stage
- Added MBEDTLS_PRIVATE(...) wherever required
- Added RNG function parameter
- Updated GCM Module changes
- Updated Copyright notices
- Tests:
- build_esp_idf_tests_cmake_esp32
- build_esp_idf_tests_cmake_esp32s2
- build_esp_idf_tests_cmake_esp32c3
- build_esp_idf_tests_cmake_esp32s3
ci: Fixing build stage (mbedtls-related changes)
- Added MBEDTLS_PRIVATE(...) wherever required
- Updated SHAXXX functions
- Updated esp_config according to mbedtls changes
- Tests:
- build_examples_cmake_esp32
- build_examples_cmake_esp32s2
- build_examples_cmake_esp32c3
- build_examples_cmake_esp32s3
ci: Fixing build stage (example-related changes)
- Added MBEDTLS_PRIVATE(...) wherever required
- Updated SHAXXX functions
- Updated esp_config according to mbedtls changes
- Tests:
- build_examples_cmake_esp32
- build_examples_cmake_esp32s2
- build_examples_cmake_esp32c3
- build_examples_cmake_esp32s3
ci: Fixing target_test stage
- Updated test SSL version to TLS_v1_2
- Tests:
- example_test_protocols 1/2
ci: Fixing build stage
- Added checks for MBEDTLS_DHM_C (disabled by default)
- Updated esp_cryptoauthlib submodule
- Updated factory partition size for legacy BLE provisioning example
- Tests:
- build_examples_cmake_esp32
- build_examples_cmake_esp32s2
- build_examples_cmake_esp32c3
- build_examples_cmake_esp32s3
Co-authored-by: Laukik Hase <laukik.hase@espressif.com>
2022-03-03 01:37:10 +05:30
Aditya Patwardhan
45122533e0
mbedtls-3 update:
...
1) Fix build issue in mbedtls
2) skip the public headers check in IDF
3)Update Kconfig Macros
4)Remove deprecated config options
5) Update the sha API according to new nomenclature
6) Update mbedtls_rsa_init usage
7) Include mbedtls/build_info.h instead of mbedtls/config.h
8) Dont include check_config.h
9) Add additional error message in esp_blufi_api.h
2022-03-03 01:37:10 +05:30
Omar Chebib
2571aaf3c9
G0: target component (components/esp32*) doesn't depend on driver anymore
2022-03-02 04:21:00 +00:00
Euripedes Rocha
f7b842bbc7
EXAMPLES/ASIO: Adds a SOCKS4 example
...
Creates an example on how to connect using Socks4 based proxy.
2022-03-01 13:50:47 +00:00
Shubham Kulkarni
8199f711a2
examples/esp_http_client: Use dl.espressif.com URL for performing request with Range header
...
esp_http_client_test.py: Add check for range request log
2022-02-25 10:29:17 +05:30
David Cermak
afe7ab3b2c
ci/mdsn: Fix example test on ethernet runners
...
* Ethernet kit uses GPIO0 for ref-clock, so the test button hits
constantly
* Add a freeRTOS delay when checking result on assync queries
2022-02-24 11:01:26 +01:00
David Cermak
51a5de2525
mdns: Fix potential read behind parsed packet
2022-02-24 11:01:26 +01:00
Harshit Malpani
1cb9ba5076
Push out coap
to idf-extra-component repository
2022-02-23 15:08:36 +05:30
Nachiket Kukade
7ed8fdac59
esp_wifi: Always connect Station in PMF mode if possible
...
While using esp_wifi_set_config, flag pmf_capable defaults to 0.
Users may not bother to enable it, which prevents connection to a
WPA3 AP. Or the AP may reset into WPA3 mode failing the re-connection.
To ensure better security, deprecate the pmf_capable flag and set it to
true internally.
2022-02-21 11:31:56 +05:30
Harshit Malpani
94056fd4a5
esp_https_server: API cleanup
2022-02-14 16:25:54 +05:30
Marius Vikhammer
edb76f14d6
esp_timer: remove legacy ESP32 FRC timer implementation.
2022-02-10 15:17:49 +08:00
Mahavir Jain
ba348f11b8
Merge branch 'bugfix/fix_esp_http_client_example' into 'master'
...
esp_http_client: Fix memory leak in esp_http_client_example
Closes IDFGH-6717
See merge request espressif/esp-idf!17051
2022-02-10 05:19:51 +00:00
Darian Leung
57fd78f5ba
freertos: Remove legacy data types
...
This commit removes the usage of all legacy FreeRTOS data types that
are exposed via configENABLE_BACKWARD_COMPATIBILITY. Legacy types can
still be used by enabling CONFIG_FREERTOS_ENABLE_BACKWARD_COMPATIBILITY.
2022-02-09 23:05:45 +08:00
yuanjm
a3105a950b
esp_http_client: Fix memory leak in esp_http_client_example
...
Closes https://github.com/espressif/esp-idf/issues/8346
2022-02-09 17:35:02 +08:00
Suren Gabrielyan
cbc767b6d7
Merge branch 'bugfix/websocket_example_echo_server' into 'master'
...
websocket: Updated Kconfig to use 'echo.websocket.events' echo server
Closes IDFGH-6619
See merge request espressif/esp-idf!16965
2022-02-03 08:40:53 +00:00
Aditya Patwardhan
b284016bfd
configure_ds.py: Fix the error for prod mode. They script now only verifies the purpose in the prod mode.
...
Closes https://github.com/espressif/esp-idf/issues/8285
2022-01-31 14:13:25 +05:30