Commit graph

1998 commits

Author SHA1 Message Date
Rodrigo Garcia
a13520c966
Fix commentary (#7800)
Minor fix based on observation done in https://github.com/espressif/arduino-esp32/issues/7795#issuecomment-1416868611
2023-02-06 14:29:58 +02:00
Rodrigo Garcia
d69b888822
Adds softAp(String) to make it compatible with ESP8266 (#7801) 2023-02-06 14:29:32 +02:00
Pedro Minatel
23d715af1b
Added ESP32-S3 link to the datasheet (#7738) 2023-01-20 15:18:51 +00:00
Pedro Minatel
f1b06d2a74
Added the example guideline and template (#7665)
* Added the example guideline and template

* PR review changes with some typos and grammar fixes

* Changes according to the PR review
2023-01-17 15:28:39 +01:00
TANAKA Masayuki
a95d838aab
Fix typo T0 -> T1 touch example 2023-01-12 15:19:09 -03:00
Me No Dev
d158aa6f5b
Fix BluetoothSerial compilation caused by upstream change (#7681)
Fixes: https://github.com/espressif/arduino-esp32/issues/7675

The signature of `esp_spp_cb_t` has changed in recent ESP-IDF v4.4.3, so this fix targets to accomodate that change in Arduino
2023-01-12 09:55:43 +02:00
Tinyu
d342739308
Create M5AtomS3 pins_arduino.h and M5AtomS3 Board (#7654)
* Add M5AtomS3

* M5AtomS3

* Update boards.txt

Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com>
2023-01-10 11:23:18 +01:00
Ha Thach
778674ba4c
add mising TX1 RX1 for adafruit boards (#7680) 2023-01-09 12:55:51 +01:00
Me No Dev
57b27cd800
Fix gen_insights_package.py missing on release (#7650)
* Fix gen_insights_package.py missing on release

Fixes: https://github.com/espressif/arduino-esp32/issues/7649

* fixes gen_insights_package.exe for Win10 and Win11

* Add insights example to be compiled by CI

Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com>
2023-01-06 16:50:43 +02:00
Me No Dev
0b7f7b0e31
Copy JTAG files only if it's enabled in the board menu (#7655) 2023-01-06 10:41:30 +02:00
Vojtěch Bartoška
0ad5eef92e
Gitter link update of Readme.md (#7658)
On last Community Meeting, we have noticed that some active contributors don't know about the Gitter channel. 

This PR replace Gitter badge button by simple web link so it's supposed to be more visible.
2023-01-04 11:53:38 +00:00
David McCurley
41a83c4c02
Add v2.0.6 into Issue Template (#7628) 2023-01-02 09:59:24 +01:00
me-no-dev
b63f947037 Update on-release.sh 2022-12-22 18:29:58 +02:00
Sanket Wadekar
7c79cdd6e3
Fixed issue where esp32 won't reconnect to WiFi AP if the AP was restarted. (#7512)
* Fixed issue where esp32 won't reconnect to WiFi AP if the AP was restarted

* Added the autoReconnect condition and removed the reconnect reason

* Chenges on the WiFi reconnection and added new example

* Added new line at the end

* Changes reverted with some minor changes. New example remained

* Changes reverted and sync

Co-authored-by: pedro.minatel <pedro.minatel@espressif.com>
2022-12-22 17:43:26 +02:00
Sanket Wadekar
161b1673d9
Draft: Esp insights library support (#7566)
* ESP Insights: Added library support

* ESP Insights: Added Examples

* ESP Insights: Added custom partitions file

* ESP Insights: Added API documentation.

* Added recipe and script to create Insights package

* Updated ESP Insights examples.

* Changed Insights Firmware package output directory

* Changed license to include SPDX license

* Fix Insights package for Windows

* Updated .exe of insights script

* Added coredump partition to all schemes

* Updated header files of Insights diagnostics

* hotfix: Added elf-sha256-offset flag in elf2bin
builder

* Update API to be more Arduino-like and partitions offsets

Co-authored-by: Me No Dev <me-no-dev@users.noreply.github.com>
2022-12-22 17:42:56 +02:00
Curry
bb8c8559b6
Fix potential CORRUPT HEAP problem on libraries/BLE/src/BLEDevice.cpp (#7597)
* Update BLEDevice.cpp

fix potential CORRUPT HEAP problem

* move mux to BLEDevice class
2022-12-21 19:59:40 +02:00
me-no-dev
94fd529e36 Update version prior to release 2022-12-21 18:54:30 +02:00
Rodrigo Garcia
2333df5ac6
Removes a few Warnings and fixes Math rand() to work like Arduino mainstream (#7613)
* fixes warnings and rand function

* removes extra space - style
2022-12-21 18:48:10 +02:00
Rodrigo Garcia
5dff15ce9d
Fixes inconsistencies and adds extended HardwareSerial examples (#7412)
* adds extended HardwareSerial examples

* Adds new example with Serial RxTimeout

* adds and improves Serial onReceive expamples

* adjust includes CMake - UART example

* adjust includes CMake - UART example

* fixes CMake and CI

* adds ESP/Serial to CMakeList

* adds ESP/Serial to CMakeList

* fixes demo include

* fixes BREAK demo

* fixes onReceive demo

* Changes FIFO Full criteria

Changed the "1-by-1" Serial only when baud rate is 57600 or lower.

* example code replacement

* replaces functions in hal
2022-12-21 18:47:17 +02:00
Claus Näveke
a95ce27ad7
Reflect ledc API changes in Docs (#7612)
* Update ledc.rst

API has changed with https://github.com/espressif/arduino-esp32/pull/6570

* Update ledc.rst

Fix whitespace

Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com>
2022-12-21 18:46:52 +02:00
Rotzbua
a6fefb20fe
Update WiFiScan example to show more useful data (#7378)
* Update `WiFiScan` example to show more useful data

* Add channel to output.
* Add type of encryption to output.
* Format output as table.
* Update outdated example description.
* Add `scanDelete()` as hint to free memory.

* added 32 chars SSID + readme edit

Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com>
2022-12-21 18:46:33 +02:00
Bob Igo
e9c125fb22
replaced original BLE_iBeacon.ino example with a known-good one (#7470)
* replaced original iBeacon example with a known-good one

* addressed VojtechBartoska's comment

* incorporated P-R-O-C-H-Y's change

Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com>
2022-12-21 16:35:56 +01:00
Zeynep Dicle
e69081c12f
Add newly boards (Deneyap Kart 1A v2, Deneyap Mini v2) (#7603)
* added new Deneyap Boards

* fixed bug

Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com>
2022-12-21 12:42:56 +01:00
Baptiste
e91efd4aa1
Added support for heltec_wifi_lora_32_V3 and heltec_wifi_kit_32_V3 (#7410)
* Added support for heltec_wifi_lora_32_V3 and heltec_wifi_kit_32_V3
Changes to be committed:
	new file:   variants/heltec_wifi_kit_32_v3/pins_arduino.h
	new file:   variants/heltec_wifi_lora_32_V3/pins_arduino.h

* Added support for heltec_wifi_lora_32_V3 and heltec_wifi_kit_32_V3
Changes to be committed:
	new file:   variants/heltec_wifi_kit_32_v3/pins_arduino.h
	new file:   variants/heltec_wifi_lora_32_V3/pins_arduino.h
	modified:   boards.txt

* Added Support for Heltec Boards V3

* change upload max size for HeltecV3

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-12-21 10:29:08 +01:00
Me No Dev
d135e8a7e1
Update libs with ESP-Insights enabled for all targets (#7606) 2022-12-21 00:24:34 +02:00
Robert Byrnes
947ee6fd62
refactor(toString method): Add RSSI / serviceData (#7561)
* refactor(toString method):  Add RSSI / serviceData

These are key characteristics of the BLE advertising packet. Really useful, adding to this method allows data to be easily obtained and passed over TCP/IP for processing.

* fix: remove line 565 bug
2022-12-19 15:52:35 +02:00
Jovan Frandika
d08e9005b3
chore: add err name to EEPROMClass commit method's error log (#7598) 2022-12-19 15:14:09 +02:00
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