Commit Graph

2085 Commits

Author SHA1 Message Date
lly
b6308e4a1b ble_mesh: example: Remove some useless included header files 2020-08-31 11:37:34 +00:00
Carlos Sobrinho
c2491c86b1 Fix compilation warnings about portmacro being already define. 2020-08-31 11:37:34 +00:00
David Cermak
6f1b8fe062 esp-modem: Remove esp-netif destroy from modem network glue code
To be in line with other interfaces, when deleting the driver and it's glue layer to esp-netif, we DO NOT delete the related esp-netif (since is was allocated and created outside of the glue code and it works the same way in esp-eth and esp-wifi driver/glue layers).

Closes https://github.com/espressif/esp-idf/issues/5486
2020-08-31 06:47:01 +00:00
Shubham Kulkarni
78356d1336 advanced_https_ota_example: Demonstrate use of init_complete_callback to set custom headers 2020-08-29 09:05:52 +00:00
Shubham Kulkarni
7d3618a86c Update OTA README to mention advanced_https_ota example and add reference to API documentation of esp_https_ota component
Closes: https://github.com/espressif/esp-idf/issues/5487
2020-08-29 09:05:52 +00:00
KonstantinKondrashov
5e8795eebe example/flash_encryption: Fix partition table and sdkconfig.defaults
When the flash encryption is enabled then we do not need to change the partition table.
The partition_example.csv should not have fixed offsets for partitions because we want to move the whole table.
The fixed offsets in the table were cleared.
2020-08-26 19:37:33 +08:00
Chen Yi Qun
b45b3de1fa mcpwm_example: Fix MCPWM period calculation bug in high frequency
mcpwm_basic_config example calculates period incorrectly in high
frequency. The period calculation will move to ISR and the method of
calculation will be changed.
2020-08-25 19:39:27 +08:00
Roland Dobai
6a73c74d71 Follow-up improvements for the gcov example test 2020-08-24 08:29:03 +00:00
David Čermák
a80b25ebbb Merge branch 'feature/ws_client_close_frame' into 'master'
ws_client: Added support for close frame, closing connection gracefully

Closes IDF-1915

See merge request espressif/esp-idf!9677
2020-08-21 14:36:18 +08:00
He Yin Ling
685c3fc70c Merge branch 'test/merge_ble_mesh_node_and_provioner_in_console' into 'master'
Test:merge ble mesh node and provioner in console

See merge request espressif/esp-idf!8897
2020-08-21 11:01:37 +08:00
Lu Chang Jie
cd3cf630a5 Test: merge ble mesh node and provioner in console 2020-08-21 11:01:37 +08:00
Angus Gratton
7547820393 Merge branch 'refactor/sleep_modes' into 'master'
Refactor sleep modes code

Closes IDF-1119

See merge request espressif/esp-idf!8404
2020-08-19 12:51:43 +08:00
David Cermak
44c553fd14 ws_client tests: Updated example test to use WebsSocket package
Added a new test for closing connection with close frames
2020-08-18 06:42:22 +00:00
David Cermak
b213f2c6d3 ws_client: Added support for close frame, closing connection gracefully 2020-08-18 06:42:22 +00:00
David Čermák
30845ed47e Merge branch 'bugfix/mqtt_mutual_auth_example' into 'master'
MQTT: add server side authentication to mutual auth example

See merge request espressif/esp-idf!10014
2020-08-18 14:10:32 +08:00
Renz Bagaporo
b30522f701 esp32, esp32s2: move sleep modes code to esp_system 2020-08-17 19:09:23 +08:00
Jiang Jiang Jian
9c1b2820a1 Merge branch 'feature/btdm_mode_change_event' into 'master'
components/bt: Add mode change event

Closes BT-981

See merge request espressif/esp-idf!9720
2020-08-17 14:53:46 +08:00
Michael (XIAO Xufeng)
ceb690886e Merge branch 'feature/esp32s2_adc_calib_V1' into 'master'
driver/adc: support for esp32s2 adc calibration scheme (RTC High Priority)

Closes IDFGH-3500

See merge request espressif/esp-idf!10004
2020-08-14 13:42:39 +08:00
Wu Bo Wen
6a0951ecb2 driver/adc: support for esp32s2 adc calibration scheme
ESP32 lets the user choose from using Vref, Lookup Table, and Two-Point Calibration. In ESP32S2 only two-point calibration is supported. This commit support these changes in idf.

Closes https://github.com/espressif/esp-idf/issues/5455
2020-08-13 17:27:03 +08:00
baohongde
060a36352c components/bt: Add mode change event 2020-08-12 09:20:04 +00:00
Marius Vikhammer
a54291b22b MQTT: add server side authentication to mutual auth example 2020-08-12 11:25:00 +08:00
Michael (XIAO Xufeng)
e97e7281b2 Merge branch 'feature/tinyusb_cdc' into 'master'
Feature/tinyusb cdc

See merge request espressif/esp-idf!7212
2020-08-10 18:13:23 +08:00
Jiang Jiang Jian
c2e549b1b8 Merge branch 'feature/ble_combined_adv_scan' into 'master'
bluetooth: added example `ble_adv_scan_combined' for combined scanning and advertising

Closes BT-843 and BT-867

See merge request espressif/esp-idf!6661
2020-08-07 14:08:02 +08:00
Jiang Jiang Jian
c27bd40d54 Merge branch 'feature/support_phase2TTLS_algos' into 'master'
wpa_supplicant: add support for PAP, MS-CHAP and CHAP as Phase 2 algorithms for TTLS alongside MS-CHAPv2

Closes FCS-361

See merge request espressif/esp-idf!8816
2020-08-07 14:06:12 +08:00
Andrei Gramakov
84aa1c0cc3 usb: cdc support, streams redirection; ci, examples upd
tusb: cdc, tasks encapsulation, callbacks api, multiple interfaces
examples: added serial interface and usb console
ci: reimplemented cmake/make test in python with ignore lists

IDF-578
2020-08-06 15:26:08 +02:00
Michael (XIAO Xufeng)
b08c2885d8 Merge branch 'bugfix/examples_echo_fix_stack_size' into 'master'
examples: fix echo example crash when UART interrupt handler placed in IRAM

Closes IDFGH-2371

See merge request espressif/esp-idf!8694
2020-08-06 19:32:14 +08:00
Alex Lisitsyn
df9ca688d7 examples: fix echo example crash when UART interrupt handler placed in IRAM 2020-08-06 19:32:11 +08:00
Fu Hanxi
19ad15a1b4 modify example tests. delete unused arguments 2020-08-04 13:27:16 +08:00
Ivan Grokhotkov
16c73edc67 Merge branch 'refactor/add_alias_name_for_ets_common_api' into 'master'
esp_rom: extract common ets apis into esp_rom_sys.h

See merge request espressif/esp-idf!9701
2020-07-28 15:04:55 +08:00
Chinmay Chhajed
6dbb993071 bluetooth: Added HCI example for combined scanning and advertising. 2020-07-28 05:32:14 +00:00
Chinmay Chhajed
abb79e4fb5 Bluetooth HCI common components.
Separate Bluetooth HCI component example which adds some macros and
functions used by HCI Layer defined by the spec.
2020-07-28 05:32:14 +00:00
Michael (XIAO Xufeng)
395a51b441 Merge branch 'bugfix/fix_touch_sensor_api' into 'master'
driver(touch): fix touch sensor driver redundancy

Closes IDF-1850

See merge request espressif/esp-idf!9273
2020-07-27 22:20:10 +08:00
Michael (XIAO Xufeng)
2bfd725e66 Merge branch 'feature/i2c++' into 'master'
I2C C++ API

See merge request espressif/esp-idf!7812
2020-07-27 20:05:42 +08:00
morris
2917651478 esp_rom: extract common ets apis into esp_rom_sys.h 2020-07-27 15:27:01 +08:00
fuzhibo
1568b6913d driver(touch): fix touch sensor driver redundancy 2020-07-27 03:37:29 +00:00
Jakob Hasse
25424477f2 C++: I2C API 2020-07-24 08:36:16 +08:00
Aditya Patwardhan
591d67d58b esp32/secure_element: update esp-cryptoauthlib submodule pointer 2020-07-23 16:08:14 +00:00
Hrudaynath Dhabe
d7ccad371a wpa_supplicant: add support for PAP, MS-CHAP and CHAP as Phase 2 algorithms for TTLS alongside MS-CHAPv2 2020-07-23 11:07:14 +00:00
He Yin Ling
4c32c71db9 Merge branch 'feature/support_python3_autotest' into 'master'
test: run IT jobs with python3

See merge request espressif/esp-idf!9673
2020-07-23 16:07:43 +08:00
Chen Yudong
4088702077 test: auto test script supports python3 2020-07-22 16:14:21 +08:00
Alexey Gerenkov
0e3c7918e4 examples: Fixes 'apptrace_to_host' to work with updated OpenOCD tracing command 2020-07-22 06:49:27 +00:00
Ivan Grokhotkov
ba874ccb04 Merge branch 'feature/freemodbus_add_tcp_master_slave' into 'master'
freemodbus:  add tcp master and slave support

Closes IDFGH-1147 and IDF-452

See merge request espressif/esp-idf!7506
2020-07-22 00:34:06 +08:00
Alex Lisitsyn
d0b9829eef examples: freemodbus add tcp support for common master/slave iface
Add TCP port files to provide Modbus TCP interface for communication
Add freemodbus add tcp support for common master/slave iface and tcp example based on socket API
The communication between master and slave checked for each example serial_master, serial_slave (use ModbusPoll TCP)
update tcp example according netif changes, fix ci issues
update TCP slave implementation
update example_test.py to to set IP through stdin
update API documentation
event bit instead of semahore to lock communication resource
update default options and master/slave port files

Closes https://github.com/espressif/esp-idf/issues/858
Closes IDF-452
2020-07-22 00:34:04 +08:00
Fu Hanxi
6885421976 CI: add size info for binaries 2020-07-21 16:00:05 +08:00
Angus Gratton
f83a61e2c8 Merge branch 'feature/ulp_riscv' into 'master'
feature/components: Initial support for ULP-RISC-V Coprocessor on esp32s2

Closes IDF-521

See merge request espressif/esp-idf!8781
2020-07-20 08:27:20 +08:00
Felipe Neves
b6dba84323 ulp: added support to building code for riscv ULP coprocessor 2020-07-15 15:28:49 -03:00
David Cermak
bb9a7356ac esp-netif: removing SLIP related events as the slip-modem set state synchronously 2020-07-15 15:46:46 +02:00
David Cermak
1a41545c3e esp-netif: SLIP interface refactor to isolate interface from drivers 2020-07-15 15:46:46 +02:00
ryan
266be00254 esp-netif: Added esp_netif slip support, slip_modem component and example
Merges https://github.com/espressif/esp-idf/pull/4985
2020-07-15 15:46:46 +02:00
David Čermák
95b33895b8 Merge branch 'feature/pppos_sim7600' into 'master'
pppos-client: support for SIM7600 modem

Closes IDFGH-3256

See merge request espressif/esp-idf!9333
2020-07-15 20:54:26 +08:00
David Čermák
fa9f025e4a Merge branch 'feature/asio_ssl_support' into 'master'
asio: basic support of SSL/TLS transport

Closes IDFGH-1085 and IDFGH-2138

See merge request espressif/esp-idf!8797
2020-07-15 19:51:47 +08:00
Li Qi Gan
f6f2d9780b add API esp_spp_stop_srv() and fix the error parameter in esp-idf/examples/bluetooth/bluedroid/classic_bt/bt_spp_initiator/main/example_spp_initiator_demo.c
Closes https://github.com/espressif/esp-idf/issues/5409
Closes https://github.com/espressif/esp-idf/pull/5408

See merge request espressif/esp-idf!9114
2020-07-15 15:49:37 +08:00
Jiang Jiang Jian
0376b23c7c Merge branch 'component/seperate_bta_jv_l2c' into 'master'
component_bt:/ separate BTA_JV_L2CAP for less bin size

See merge request espressif/esp-idf!9158
2020-07-15 11:38:16 +08:00
David Čermák
f8b649baaf Merge branch 'bugfix/ws_server_async_send_fin' into 'master'
http_server example: WebSocket server to set final flag in async messages

Closes IDFGH-3443

See merge request espressif/esp-idf!9251
2020-07-15 05:31:02 +08:00
David Čermák
b2150f86a5 asio: make the example code conform to Espressif C++ standards 2020-07-14 10:42:17 +00:00
David Cermak
1c8171c3e8 asio: option to use wolfSSL as TLS stack for ASIO
Plus other minor update, make openssl aware of current modes (SSL_set_mode)
Update coding style in examples and tests, including copyright notices
2020-07-14 10:42:17 +00:00
David Cermak
213bbe51fc examples: asio ssl example demonstrating both server and client
By default it uses simple client connecting to https address. It is
possible to configure both server and client. As for example test the
configuration of both server and client connecting to each other on
2020-07-14 10:42:17 +00:00
David Cermak
085d2b8d25 examples: common connect to also support no connection flow if no inteface chosen
This is useful for testing if there's no need for external network and connection
2020-07-14 10:42:17 +00:00
Mahavir Jain
7727f1612e Merge branch 'task/httpd_strlen' into 'master'
httpd_resp_send: use `HTTPD_RESP_USE_STRLEN` when possible

Closes IDFGH-3268

See merge request espressif/esp-idf!8957
2020-07-14 12:11:52 +08:00
David Cermak
c226270138 pppos-client: support for SIM7600 modem
Reuses most of the code from BG96. At this moment, this is not a
perfect support for other modules as the generic handlers for most
common modem functionality is not easily reusable. Refactoring to a
fully independent modem component will solve this.

Closes https://github.com/espressif/esp-idf/issues/5250
2020-07-13 14:45:19 +00:00
David Cermak
005f21accc http_server: WebSocket server to set flag in transmitted messages by default
Add logic to set `FIN` flag automatically for transmitted WS frames, but
if `fragmented` option set indicating an expert/manual mode, then the
`FIN` flag is set according to the `final` option.
2020-07-13 14:39:22 +00:00
David Cermak
52150c2cd2 http_server example: WebSocket server to set final flag in async messages
Closes https://github.com/espressif/esp-idf/issues/5405
2020-07-13 14:39:22 +00:00
David Čermák
6edf0fed2b Merge branch 'feature/support_ksz8041' into 'master'
support ksz8041

Closes IDFGH-3495 and IDFGH-3584

See merge request espressif/esp-idf!9558
2020-07-13 22:30:58 +08:00
Ivan Grokhotkov
b62e4e6f85 Merge branch 'feature/vfs_uart_set_line_ending' into 'master'
feature: support vfs uart set line endings with specified uart number

See merge request espressif/esp-idf!9112
2020-07-13 15:51:42 +08:00
sU8U7SfkcwTJVH7PjaVmej7D
6673407f98 httpd_resp_send: use HTTPD_RESP_USE_STRLEN when possible 2020-07-13 05:34:56 +00:00
Jiang Jiang Jian
92d4bb6ed0 Merge branch 'bugfix/wps_multiple_ap_creds' into 'master'
Fix handling of multiple AP credentials in WPS

Closes FCS-356

See merge request espressif/esp-idf!9137
2020-07-12 20:26:08 +08:00
lly
578f775fb9 ble_mesh: ci: Enable friend & low power in build check 2020-07-10 14:14:01 +08:00
houwenxiang
8e00522cd7 vfs: support vfs uart set line endings with specified uart number 2020-07-10 11:15:09 +08:00
lly
953810aa68 ble_mesh: example: Add result check during mesh init 2020-07-10 00:57:09 +00:00
Island
5d970c0e8c Merge branch 'feat/ble_mesh_use_iram_for_mem_alloc' into 'master'
Feat/ble mesh use iram for mem alloc

See merge request espressif/esp-idf!9449
2020-07-09 23:06:27 +08:00
morris
648bcc7a87 ethernet: add ksz8041 in basic ethernet example 2020-07-09 21:49:07 +08:00
Nachiket Kukade
81f037a299 Fix handling of multiple AP credentials in WPS
WPS can send multiple AP credentials, while existing implementation
will only use the first credentials which could be for the 5G band.
Fix this by passing these credentials to the App and attempting
to connect using each of those. Older Apps will remain compatible
without breaking WPS, but the issue will remain.
2020-07-08 11:02:55 +00:00
weitianhua
11abaed398 Fix tsk watchdog when running spp vfs demo 2020-07-08 17:50:19 +08:00
Mahavir Jain
5341688c7e Merge branch 'feature/add_status_code_check' into 'master'
esp_https_ota: Add check for HTTP error codes

Closes IDFGH-3593

See merge request espressif/esp-idf!9486
2020-07-08 13:12:46 +08:00
Shubham Kulkarni
60fcf1bae6 Increase receive timeout in sdkconfig.ci to fix CI failures 2020-07-08 04:03:26 +00:00
Marius Vikhammer
55982fa146 Rewrite Bluedroid BT READMEs from .rst to .md 2020-07-08 10:39:33 +08:00
Marius Vikhammer
a80cff924b docs: fix broken links in example READMEs 2020-07-08 10:39:33 +08:00
lly
b10b2884a6 ble_mesh: ci: Add iram & psram configurations 2020-07-08 01:45:01 +00:00
Ivan Grokhotkov
ea75605aa7 Merge branch 'feature/scan_test_at_pre_check' into 'master'
ci: scan_tests at pre_check stage to determine build/artifact behavior for example_test and custom_test

Closes IDF-1376

See merge request espressif/esp-idf!8447
2020-07-07 23:43:03 +08:00
Ivan Grokhotkov
8cd1f99ace Merge branch 'refactor/common_rom_gpio_apis' into 'master'
esp_rom: extract common GPIO apis into esp_rom_gpio.h

See merge request espressif/esp-idf!9248
2020-07-07 17:28:39 +08:00
Ivan Grokhotkov
adf86bd95e Merge branch 'feature/console_repl_on_uart' into 'master'
console_repl: move UART specific configuration into single config structure

See merge request espressif/esp-idf!8964
2020-07-07 16:27:47 +08:00
morris
a4d0033c03 esp_rom: extract common GPIO apis into esp_rom_gpio.h 2020-07-07 11:40:19 +08:00
Ivan Grokhotkov
983220e216 ci: temporarily disable RS485 related tests 2020-07-06 20:12:43 +00:00
Fu Hanxi
2c2f66aa21 add supported target to ESP32-S2 Temperature Sensor Example 2020-07-06 19:05:44 +08:00
Ivan Grokhotkov
59f5e9af37 Merge branch 'bugfix/monitor_wait_reconnect' into 'master'
Fix IDF Monitor so it will wait for the device to reconnect

Closes IDF-1640

See merge request espressif/esp-idf!8632
2020-07-06 15:18:48 +08:00
morris
29f8aecfc0 console_repl: change config structure to support different devices 2020-07-02 07:39:46 +00:00
Island
a97a16202e Merge branch 'bugfix/ble_mesh_compile_error' into 'master'
bugfix: ble mesh proxy compile error

See merge request espressif/esp-idf!9334
2020-07-01 11:17:26 +08:00
Island
9e23affd65 Merge branch 'bugfix/ble_mesh_readme_fix' into 'master'
ble_mesh: example: Fix example README & tutorial link error

Closes BMCI-97 and IDFGH-3558

See merge request espressif/esp-idf!9379
2020-07-01 11:11:59 +08:00
Darian Leung
97721d469c TWAI: Add ESP32-S2 support
This commit adds TWAI driver support for the
ESP32-S2. The following features were added:

- Expanded BRP support
- Expanded CLKOUT Divider Support
- Updated example READMEs
2020-06-30 16:56:03 +08:00
lly
aa2a98899b ble_mesh: example: Fix example README & tutorial link error 2020-06-29 19:23:18 +08:00
Roland Dobai
b9eb7cb7f0 tools: Fix IDF Monitor so it will wait for the device to reconnect 2020-06-29 09:18:05 +02:00
lly
e4a115f0e2 ble_mesh: ci: Add different proxy configurations 2020-06-28 23:09:47 +00:00
Angus Gratton
002a13a71a ci provisioning: Add some experiments to check the runner's STA state
Not clear why sometimes it associates without negotiating a new DHCP lease.
2020-06-28 22:52:45 +00:00
Angus Gratton
2e8d607b21 legacy provisioning: Always try to reconnect when disconnected
Some APs may fail authentication temporarily if they have too many
associated stations, for example.
2020-06-28 22:52:45 +00:00
Angus Gratton
5bdecb3db2 esp_prov: Refactor to use new 'wait_wifi_connected' function
Means all provisioning examples will have the same retry behaviour.
2020-06-28 22:52:45 +00:00
Angus Gratton
e969a5e5ff ci provisioning: Use strings instead of "magic numbers" for connection state 2020-06-28 22:52:45 +00:00
Angus Gratton
05ef08b1d5 ci: Wait up to 60 seconds for client to connect to DUT in provisioning test 2020-06-28 22:52:45 +00:00
Ivan Grokhotkov
45fff86e05 Merge branch 'feature/usb_console_ig' into 'master'
add USB CDC as a console option

Closes IDF-1620

See merge request espressif/esp-idf!8459
2020-06-29 05:16:15 +08:00
Ivan Grokhotkov
3e7506ccda examples/console: error out if built with USB CDC enabled 2020-06-26 15:38:49 +02:00
Ivan Grokhotkov
b767e6191d examples/console: add check for CONFIG_ESP_CONSOLE_UART_NUM 2020-06-26 15:38:49 +02:00