Commit Graph

16531 Commits

Author SHA1 Message Date
David Cermak
1fa0db8d44 tcp_transport: Allow for using transport independently from list
For compatibility reasons, support also transports separately if the transport is used
before attaching to parent list. In this case we create an internal context which is
independent on the foundation transport and used preferably
2021-02-16 09:01:35 +01:00
David Cermak
41146d674f ci: Update pppos client test regex with esp-tls transport layer 2021-02-16 09:01:35 +01:00
David Cermak
99805d880f websockets: Set keepalive options after adding transport to the list
To be in line with other code and mainly to support base/foundation transport used by both tcp and ssl transport layers
2021-02-16 09:00:43 +01:00
David Cermak
0e97517a1c tcp_transport: Add unit test to exercise tcp/ssl transport init 2021-02-16 09:00:43 +01:00
David Cermak
4e394bcbce esp-tls: Extend error types with TCP clean close error 2021-02-16 09:00:43 +01:00
David Cermak
b4d792446c examples/mqtt: Use common transport for setting log severity 2021-02-16 09:00:43 +01:00
David Cermak
6b318fe583 esp_tls: Updated connection method to use non-blocking connect
For better control over connection timeouts
To be in line with former tcp_transport, as esp-tls is not used for
plain tcp transports
2021-02-16 09:00:43 +01:00
David Cermak
2c28ffffee tcp_transport/esp_tls: Use common TCP transport to reduce code duplication
For high level review of the changes.
2021-02-16 09:00:43 +01:00
David Cermak
391d7bf271 tcp_transport: Add TCP transport connection errors
Transport's error_handle is used to capture different types of errors
including esp_err_t from esp-tls and socket/system errors.
This change adds the following error codes for TCP transport:
* connection closed by a FIN flag (clean closure from server)
* DNS resolution problem
* connection timeout
These errors are already defined in esp-tls component and since this
component will be used in the future for both TCP and SSL transport, we
currently report these issues in transport::error_handle::esp_tls_last_error
of standard esp error type (esp_err_t)

Closes https://github.com/espressif/esp-mqtt/issues/182
2021-02-16 09:00:43 +01:00
Angus Gratton
8c195a7a17 Merge branch 'feature/ulp_c3_not_exists_update_doc' into 'master'
doc/ulp(esp32c3): Excludes ulp and some RTC features from ESP32C3 doc

Closes IDF-2318 and IDF-2331

See merge request espressif/esp-idf!12347
2021-02-15 23:09:54 +00:00
Angus Gratton
fc945be7f8 Merge branch 'bugfix/freemodbus_fix_parity_propagation_issue' into 'master'
freemodbus: fix mb controller parity propagation issues

Closes IDFGH-4560

See merge request espressif/esp-idf!11951
2021-02-15 22:55:38 +00:00
Angus Gratton
5b5431a5f0 Merge branch 'feature/new_blink_example' into 'master'
new blink example

See merge request espressif/esp-idf!12238
2021-02-15 22:47:47 +00:00
pedro.minatel
cccdb3e4aa Get started example update for addressable LED compatibility.
Added the RMT/addr LED blink to the example and more detailed README.md
 Moved component/led_strip to common_components
 Added missing README file to common_components/led_strip
 README file update
 Makefile and Kconfig fixed for led_strip component
 Fixing end-of-line on main/blink.c
 Component updated to handle multiple instances
 Added note on the RMT channel number (ESP32 and ESP32-S2)
 Removed components folder from rmt/led_strip example and README updated
 Changed the led_strip_denit function and added ESP32-C3 RMT info on channel configuration
 Updates on README, Kconfig default settings and configure_led() function added
2021-02-15 12:34:55 +00:00
Angus Gratton
7d27ddc502 Merge branch 'bugfix/aes_dma_completion' into 'master'
mbedtls: Fix AES dma completion race condition

See merge request espressif/esp-idf!12257
2021-02-15 08:23:07 +00:00
David Čermák
904be7c41b Merge branch 'bugfix/mdns-pvs-arrayoverrun' into 'master'
mdns: add bound check when setting interface as duplicate

Closes IDF-2787

See merge request espressif/esp-idf!12373
2021-02-15 08:06:56 +00:00
aleks
b554d4d34d freemodbus: fix mb controller parity propagation issues
Closes https://github.com/espressif/esp-idf/issues/6377
2021-02-15 08:39:18 +01:00
suren.gabrielyan
2b9d2c06f5 mdns: add bound check when setting interface as duplicate
Closes IDF-2787

Partially addresses https://github.com/espressif/esp-idf/issues/6440
2021-02-15 06:43:51 +00:00
Mahavir Jain
b8e6d8e699 Merge branch 'bugfix/fix_enable_reset_provision_cause_device_crash' into 'master'
provisioning: Fix enable CONFIG_EXAMPLE_RESET_PROVISIONED will cause device crash

Closes IDFGH-4409

See merge request espressif/esp-idf!12298
2021-02-15 06:05:08 +00:00
yuanjm
850053caad provisioning: Fix enable CONFIG_EXAMPLE_RESET_PROVISIONED will cause device crash
Closes https://github.com/espressif/esp-idf/issues/6240
2021-02-15 05:08:22 +00:00
Mahavir Jain
deac2fbeb9 Merge branch 'debug_prints' into 'master'
Label columns of timer and pm lock dumps

See merge request espressif/esp-idf!12047
2021-02-15 03:00:08 +00:00
Ivan Grokhotkov
552796a160 Merge branch 'feature/prefer_python3_in_installer' into 'master'
tools: Prefer python3 during install and export

Closes IDF-2682, IDFGH-4659, and IDFGH-4726

See merge request espressif/esp-idf!12250
2021-02-13 22:10:14 +08:00
Roland Dobai
47f67f8b81 tools: Prefer python3 during install and export
Install and export script should work on systems without "python"
executable.

Closes https://github.com/espressif/esp-idf/pull/6471

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

Related to https://github.com/espressif/esp-idf/issues/6421 and
https://github.com/espressif/arduino-esp32/issues/4717
2021-02-13 11:34:40 +01:00
Angus Gratton
89b6baf2b8 mbedtls tests: Add optional debug log output to AES stream tests 2021-02-12 04:08:12 +00:00
Angus Gratton
e7563fe704 mbedtls aes dma: Fix bug where DMA would complete when the first output descriptor was done, not the last 2021-02-12 04:08:12 +00:00
Angus Gratton
e22de81955 Merge branch 'feature/idfpy_update_component_manager_tests' into 'master'
CMake - process dependencies for all components by component manager

Closes PACMAN-87

See merge request espressif/esp-idf!9357
2021-02-12 11:28:18 +08:00
David Čermák
31e565c3d5 Merge branch 'feature/mqtt_example_for_user_data' into 'master'
mqtt: Clarify usage of handler args in examples

See merge request espressif/esp-idf!12125
2021-02-11 21:51:54 +08:00
Sachin Parekh
e6ccb812b2 esp_pm: Label each column of lock dump 2021-02-11 18:44:51 +05:30
Sachin Parekh
296d10e675 esp_timer: Label each column of timer dump 2021-02-11 18:40:51 +05:30
Angus Gratton
1544f64166 Merge branch 'bugfix/pvs_studio_freertos' into 'master'
freertos: fix errors reported by PVS-Studio

Closes IDF-2784

See merge request espressif/esp-idf!12337
2021-02-11 15:32:18 +08:00
Euripedes Rocha Filho
b5682610b6 examples/mqtt: Cleanup on examples
- Removes extra callback function, the code from the callback is integrated into the event handler code.
- Clarify usage of handler args, pass NULL as callback data instead of client, to avoid user confusion,
  and add documentation on usage of handler_args.
2021-02-11 07:29:29 +01:00
David Čermák
c665bcf733 Merge branch 'bugfix/doc_wifi_default_init' into 'master'
esp_netif: Update documentation on deinitialization of wifi default netif

Closes IDFGH-4692

See merge request espressif/esp-idf!12300
2021-02-11 14:15:51 +08:00
David Čermák
61f3af0ae7 Merge branch 'test/modbus_lwip_issue' into 'master'
modbus: Exit server task gracefully to correctly cleanup lwip internals

Closes IDFGH-4432

See merge request espressif/esp-idf!12075
2021-02-11 14:15:10 +08:00
Angus Gratton
4eb9cc68a6 esp_event test: Disable linker relaxations in this component, to temporarily workaround a linker bug 2021-02-11 17:00:55 +11:00
Marius Vikhammer
d294ac381f freertos: fix errors reported by PVS-Studio
Removed leftover code-paths that were never taken. Upstream freertos uses
vTaskSuspendAll() and xTaskResumeAll(), and therefor check if the task already
yielded.

In the IDF port of freertos we use critcal sections instead, so xAlreadyYielded
will never be set.

Partially addresses https://github.com/espressif/esp-idf/issues/6440
2021-02-11 03:15:04 +00:00
Angus Gratton
a196d6d1ab Merge branch 'bugfix/fix_esp_restart_crash' into 'master'
esp_hw_support: fix esp_restart crash

Closes IDFGH-4466

See merge request espressif/esp-idf!11986
2021-02-11 08:35:59 +08:00
Renz Bagaporo
2eb563406f esp_hw_support: fix esp_restart crash
Closes https://github.com/espressif/esp-idf/issues/6297
2021-02-10 23:38:17 +00:00
Angus Gratton
807c8549e1 Merge branch 'bugfix/esp32s2_wakeup_from_light_sleep_fix' into 'master'
esp32s2 light sleep fix

Closes IDFCI-122

See merge request espressif/esp-idf!10269
2021-02-11 07:34:57 +08:00
David Cermak
cab1b3507a esp_netif: Add unit test to exercise default wifi setup/teardown cycle 2021-02-10 13:28:36 +00:00
David Cermak
4051922885 esp_netif: Update documentation on deinitialization of wifi default netif
Closes https://github.com/espressif/esp-idf/issues/6504
2021-02-10 13:28:36 +00:00
David Cermak
898cac0061 modbus: Exit server task gracefully to correctly cleanup lwip internals
Current lwip implementation does not support deleting a task which is
actively waiting on `select()` or `poll()` API.
Therefore we have to make sure that `select()` exits to deallocate its internal
callback before deleting the task. This is achieved by a shutdown
semaphore which informs the client once the `select()` exitted.

fix slave
2021-02-10 13:12:54 +00:00
Ivan Grokhotkov
890ee19ee4 Merge branch 'bugfix/eclipse_make_decode' into 'master'
tools: Fix Eclipse build: “UnicodeDecodeError: 'ascii' codec can't decode byte”

Closes IDFGH-4693

See merge request espressif/esp-idf!12309
2021-02-10 18:38:16 +08:00
KonstantinKondrashov
aa581aba0f doc/ulp(esp32c3): Excludes ulp and some RTC features from ESP32C3 doc 2021-02-10 18:15:04 +08:00
Mahavir Jain
e99f2da385 Merge branch 'example/http_server_basic_auth' into 'master'
example/http_server: add basic authenticated example to HTTP server

Closes IDFGH-3720

See merge request espressif/esp-idf!11478
2021-02-10 14:54:25 +08:00
Angus Gratton
73db142403 Merge branch 'update/v4.4-dev' into 'master'
version: Update to v4.4-dev

See merge request espressif/esp-idf!12339
2021-02-10 14:44:57 +08:00
Mahavir Jain
e3d50e009a Merge branch 'fix/esp_tls_typo' into 'master'
Fix/esp_tls_mispaced_paranthesis

Closes IDF-2750 and IDF-2751

See merge request espressif/esp-idf!12295
2021-02-10 13:57:13 +08:00
Liu Han
94512a76b7 example/http_server: add basic authenticated example to HTTP server
Closes https://github.com/espressif/esp-idf/issues/5646
2021-02-10 05:23:01 +00:00
Angus Gratton
c8315e0110 version: Update to v4.4-dev 2021-02-10 16:07:24 +11:00
Anton Maklakov
0bbc721a63 Merge branch 'bugfix/known_failure_cases_read_file_error' into 'master'
ci: bugfix: known failure cases cannot read files

See merge request espressif/esp-idf!12340
2021-02-10 12:27:23 +08:00
Angus Gratton
4ce47b0394 Merge branch 'feature/master_build_c3_example' into 'master'
CI: enable example builds for C3

Closes IDF-2364

See merge request espressif/esp-idf!11968
2021-02-10 11:54:26 +08:00
Aditya Patwardhan
d36479728c protocomm: Fixed NULL check of allocated memory
Fixes one part of - https://github.com/espressif/esp-idf/issues/6440
2021-02-10 02:07:58 +00:00