Commit graph

2021 commits

Author SHA1 Message Date
aridet
1ad5406946
Fix BluetoothSerial thinking it's disconnected (#7372)
Currently, if a second connection occur in Bluetooth, this second connection is automatically disconnected (line 284).
This disconnection trigger the ESP_SPP_CLOSE_EVT, which clear the bit SPP_CONNECTED.
But the first connection remain active, and this flag shouldn't be cleared.

This fix the issue, by clearing the flag only if the last connection is closed

Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com>
2022-12-19 15:02:18 +02:00
Paolo Messina
72e79f0527
Fix ETH link status, missing duplex mode, IDF version check (#7593)
Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com>
2022-12-19 12:46:02 +02:00
Andreas Merkle
f487d89c9d
Performance improvements by replacing sprintf with strcpy/strcat. Additional avoid creating temporary String objects. (#7541)
Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com>
2022-12-19 12:45:36 +02:00
Rodrigo Garcia
a0ead19471
fixes variant wrong folder (#7594) 2022-12-15 12:40:10 -03:00
Sanket Wadekar
8004a81260
Rainmaker Example Changes (#7591)
* Changed OTA type in Rainmaker examples

* fix: Added patch in Rainmaker examples
to prevent crashes during provisioning
2022-12-15 12:46:58 +02:00
Pedro Minatel
c2caad9a22
Release version update to 2.0.6 in the Docs (#7592)
Co-authored-by: Me No Dev <me-no-dev@users.noreply.github.com>
2022-12-15 12:46:41 +02:00
Will Anderson
972c3bbd00
Add ESP-C3-M1-I-Kit board (#6938)
* feat: add ESP-C3-M1-I-Kit board to variants

* docs: rename file to slug format

* Fixes GPIO definitions

* Adds ESP32 C3 M1 I Kit to the board list

Fixes board.txt file to add the new ESP32_C3_M1_I_KIT variant

* fixes extra board separator

* Keeps only 4MB flash option

* Fix it to Flash 80Mhz QIO only

* Undo a change by mistake

Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com>
2022-12-14 23:17:31 +02:00
Pedro Minatel
ffdfd7e309
Added missing API references (#7553)
API docs changes according to the PR review
Contribution message updated
2022-12-14 17:17:28 +01:00
RM-Alltrons
5d614f5238
Added onDisconnect with gatt parameters to BLUEServerCallbacks, equivalent to the existing onConnect (#7559)
Co-authored-by: Admin <admin@wlan-244060.nbw.tue.nl>
2022-12-14 17:17:20 +02:00
vortigont
27e6f35f69
DNSServer fix custom code replies (#7475)
custom code reply was sending garbage from a buffer instead of crafted DNS header
2022-12-14 17:06:44 +02:00
loRe
5bc37a701b
Fix wrong environment variable: MKSPIFFSTOOL. (#7537)
MKSPIFFSTOOL in PlatformIO has been changed to MKFSTOOL.
2022-12-14 16:55:44 +02:00
Pedro Minatel
6b33cbb648
Fixed the countUp description (#7590) 2022-12-14 12:14:10 +01:00
Rodrigo Garcia
1d595fd35c
Workaround for when USB CDC is unplugged (#7583)
* Workaround for when USB CDC is unplugged

* Considers default TX timeout

Sets back default TX timeout whenever USB is plugged, otherwise it is kept as zero.

* fixed left over code
2022-12-14 12:47:29 +02:00
per1234
b2b4bf8d08
Add protocol-explicit upload.tool properties required for pluggable discovery compatibility (#7517)
* Correct upload tool name for "ESP32 FM DevKit"

The upload tool name was changed from `esptool` to `esptool_py`. The author of the "ESP32 FM DevKit" board definition used the old tool name and evidently never tested it, since the upload fails:

java.lang.NullPointerException
	at cc.arduino.packages.uploaders.SerialUploader.uploadUsingProgrammer(SerialUploader.java:295)
	at cc.arduino.packages.uploaders.SerialUploader.uploadUsingPreferences(SerialUploader.java:90)
	at cc.arduino.UploaderUtils.upload(UploaderUtils.java:77)
	at processing.app.SketchController.upload(SketchController.java:732)
	at processing.app.SketchController.exportApplet(SketchController.java:703)
	at processing.app.Editor$UploadHandler.run(Editor.java:2055)
	at java.lang.Thread.run(Thread.java:748)

* Add protocol-explicit `upload.tool` properties required for pluggable discovery compatibility

A new flexible and powerful "pluggable discovery" system was added to the Arduino boards platform framework. This system
makes it easy for Arduino boards platform authors to use any arbitrary communication channel between the board and
development tools.

Boards platform configurations that use the old property syntax are automatically translated to the new syntax by
Arduino CLI:

https://arduino.github.io/arduino-cli/latest/platform-specification/#sketch-upload-configuration

> For backward compatibility with IDE 1.8.15 and older the previous syntax is still supported

This translation is only done in platforms that use the old syntax exclusively. If `pluggable_discovery` properties are
defined for the platform then the new pluggable discovery-style `upload.tool.<protocol_name>` properties must be defined
for each board as well.

This platform was converted to use the new pluggable discovery platform properties syntax, so those properties are
required. Although such properties were added to board definitions at the time the syntax was changed, some board
definitions were missed at that time, or added later without the required properties.

Those missing properties caused uploads to fail for users of the recent versions of Arduino IDE and Arduino CLI with an
error of the form:

Error during Upload: Property 'upload.tool.<protocol_name>' is undefined

(where `<protocol_name>` is the protocol of the selected port, if any)

It is also important to provide compatibility with versions of Arduino development tools from before the introduction of
the modern pluggable discovery system. For this reason, the old style `<board ID>.upload.tool` properties are retained.
Old versions of the development tools will treat the `<board ID>.upload.tool.<protocol_name>` properties as an unused
arbitrary user defined property with no special significance and the new versions of the development tools will do the
same for the `upload.tool` properties.
2022-12-13 12:49:45 +02:00
Linar Yusupov
12038cb555
apply the same USB descriptor's iSerialNumber logic for ESP32-S2 as t… (#7563)
* apply the same USB descriptor's iSerialNumber logic for ESP32-S2 as the ESP32-S3 already has

* response on request from code reviewer
2022-12-13 12:33:49 +02:00
Vojtěch Bartoška
a23d67a348
Add note about Code_of_conduct to Readme.md (#7529)
* Add note about Code_of_conduct to Readme.md

Adding short note to the readme with link to Code of Conduct.

* Typos and quote
2022-12-13 12:21:02 +02:00
Vojtěch Bartoška
dc9732543b
Create CODE_OF_CONDUCT.md (#7528)
Adding generic Code of Conduct created by GitHub to this repository.

It's well written and covers all different scenarios.

In other commit, I will update the Readme with short description and link to this file.
2022-12-13 12:20:36 +02:00
Rodrigo Garcia
11c7d8e62a
fixes non existent esp32_adc2gpio (#7526)
* fixes non existent esp32_adc2gpio

* remove blank spaces (style)

Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com>
2022-12-13 11:54:59 +02:00
Rodrigo Garcia
7cbd0371e4
Improves UART reading performance (#7525)
* Improves UART reading performance

* overrides Stream::readBytes()

* fixes override signature

* adds some IDF error return  conditions
2022-12-13 11:54:07 +02:00
Jacques Supcik
744cbc2c01
fix CMake file (#7500)
Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com>
2022-12-13 11:50:54 +02:00
Rodrigo Garcia
99f66d3f87
fixes UART at lower than 80MHz | S3 C3 (#7496) 2022-12-13 11:49:59 +02:00
vortigont
9275dbff94
WiFiGeneric: remove deprecated tcpip_adapter calls (#7577)
replaced old tcp function call with ESP-NETIF API
2022-12-12 12:23:51 -03:00
Sanket Wadekar
165d62472a
log_printf: Restructured log_printf for wrapping (#7567) 2022-12-12 15:01:55 +02:00
Valerii Koval
3af0b44f38
Update PlatformIO build script (#7579)
This PR brings updates according to the latest changes in the Arduino core:
- Bootloader binaries are now generated from elf files
- Updated CI scripts
- Updated esptoolpy to v4.2.1
- Minor clean-up by removing obsolete code

Resolves #7572
2022-12-12 14:53:07 +02:00
Me No Dev
7c0934600c
Fix conflict with ESP-IDF's esp_crt_bundle (#7560) 2022-12-10 13:38:44 -03:00
Me No Dev
deca15076f
Update ESP-IDF libs for 2.0.6 (#7570) 2022-12-10 03:55:38 +02:00
Me No Dev
5b61930bb7
Support JTAG debugging in Arduino IDE 2.0 (#7295)
* Add support for Arduino IDE 2.0 Debug

* Update platform.txt

* Add SVD support

* Update configs for IDE 2.0.3

* Update esp32c3.json
2022-12-10 00:58:03 +02:00
Peter Hindes
e355370cbe
Avoid collision with tinyusb hid.h enums (#7463) 2022-12-08 23:33:48 -03:00
Tomáš Pilný
bf21695bac
Added example scanning maximum ledc frequencies (#7460) 2022-12-08 23:15:10 -03:00
Linar Yusupov
9b880929df
do not use 'colon' sign in the iSerialNumber field of USB descriptor (#7225) 2022-12-08 11:04:21 -03:00
Jan Procházka
ba68f318f4
Updated camera example (#7533) 2022-12-08 10:46:19 -03:00
Jan Procházka
dbeae9480d
AnalogWrite - frequency and resolution log errors + returns (#7471)
* Added log errors + returns
* Update LEDC docs
2022-12-08 10:25:31 -03:00
Bert Melis
394f7218ba
fix set/getSocketOption inheritance (#7480) 2022-12-07 23:20:01 -03:00
Krzysiek S
05e55d8716
Fix unnecessary DNS query in hostByName and deadlock in ssl_client (#7351)
* Fix hostByName to avoid asking DNS when valid IP is passed via hostname param
* Fix hanging in send_ssl_data
2022-12-07 18:27:02 -03:00
Lucas Machado
04693c6660
Implements seekDir and getNextFileName on FS Lib to improve performance (#7229)
* Implements seekDir and getNextFileName on FS lib to improve performance
* getNextFileName return String directly
2022-12-07 17:18:29 -03:00
Darian
9006751632
TWAI: Add receive example (#7550)
This commit addes an example showing how to receive messages using the TWAI
driver interface and a CAN transceiver. Specifically, the example demonstrates:

- How to configure and install the TWAI drvier
- How to poll for TWAI events (i.e., alerts) using twai_read_alerts()
- How to handle the various events (such as TWAI_ALERT_RX_DATA)

Closes https://github.com/espressif/arduino-esp32/pull/7430

Co-authored-by: Stephan Martin <designer2k2@gmail.com>
2022-12-05 18:12:24 +02:00
Razvan Mocanu
3968aa9399
Add new board: RedPill ESP32S3. (#7523)
* Add new board: RedPill ESP32S3.

* Change LED definition to keep compatibility.
2022-12-05 10:47:20 +01:00
Sanket Wadekar
fd72cf46ad
Changed Rainmaker WiFi/Factory reset time. (#7514) 2022-11-25 14:20:57 +02:00
Sebastian Bergner
93a7f4e0db
Add I2C and SPI pin definitions to wt32-eth01 pins configuration (#7237)
* Add I2C and SPI pin definitions to wt32-eth01 pins

Added missing pins based on testing using a RTC (I2C) and SD card reader (SPI).

* Remove define macros

Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com>
Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com>
2022-11-23 08:37:08 +01:00
RefactorFactory
bf53e2b8d6
How to use USBHID classes with ESP32-S2 and ESP32-S3 (#7214)
These instructions are based on esp32-arduino-lib-builder's build process, including https://github.com/espressif/esp32-arduino-lib-builder/blob/master/tools/update-components.sh which explains how to clone tinyusb.
2022-11-16 12:55:27 +01:00
Sanket Wadekar
5737016cdd
Add enableScenes API in Rainmaker (#7436)
* Added enableScenes API

* Added enableScenes API documentation

* Added enableScenes API to example

Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com>
2022-11-14 14:27:20 +00:00
Jan Procházka
9762b2392a
LEDC - AnalogWrite new API + ledcAttachPin duty fix (#7346) 2022-11-11 08:54:02 -03:00
Me No Dev
bcc1d758fc
ESP-IDF v4.4.3 (#7450)
* ESP-IDF v4.4.3
2022-11-10 00:39:30 +02:00
Jan Procházka
7a76aded54
Add touch sleep wakeup API (#7439) 2022-11-09 14:17:46 -03:00
David McCurley
bd71449988
WiFi Should Reconnect For Most Reasons (#7344)
Improves WiFi reconnection
2022-11-07 14:56:23 -03:00
Zeynep Dicle
271cee1061
updated Deneyap boards pin_arduino.h files (#7338)
* Add new board (Deneyap Kart 1A)

* Update pins_arduino.h

* Add newly  board (Deneyap Kart G)

New Deneyap Family member, wearable development board

* updated Deneyap boards pin_arduino.h files

* Update boards.txt

* Update pins_arduino.h

* updated deneyap boards pins_arduino.h

* updated Deneyap boards variants files

* updated Deneyap boards pins_arduino.h

Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com>
2022-11-07 15:37:35 +01:00
Ha Thach
7753b97e6e
remove obsolete partition.csv for adafruit feather esp32s3 (#7438)
which prevent changing to other partition scheme
2022-11-07 14:15:00 +01:00
Jan Procházka
3c033236f7
[DOCS] Add TOUCH peripheral API (#7421)
* add touch.rst

* update touchRead comment in header file

* Edited examples

* typo changes + updates

* about edit
2022-11-04 09:12:52 +00:00
Jan Procházka
bf265039eb
[DOCS] Add ESP32S3 to libraries support list (#7415)
* Add ESP32S3 to libraries support list

* Update libraries.rst
2022-11-03 12:58:50 +01:00
HACKER3000
999d094058
Add the Partition Scheme Menu to HELTEC LoRa32 V1 (#7362)
* Add the Partition Scheme Menu to HELTEC LoRa32 V1

This is missing from many boards, i may add that to all of them

* reordered heltec_wifi_lora_32 partition options

Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com>
2022-11-03 07:52:34 +01:00