Commit Graph

2738 Commits

Author SHA1 Message Date
Lucas Saavedra Vaz
a7cec020df
Merge commit from fork 2024-09-15 20:15:24 -03:00
TD-er
9e60bbe4bc
[WebServer] Mark functions as const + reduce copy of strings (#10339)
* [WebServer] Mark functions as const + reduce copy of strings

* ci(pre-commit): Apply automatic fixes

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2024-09-13 11:39:54 +03:00
Rodrigo Garcia
ac0de431e7
fix(arduino): rain maker common version (#10338)
Fixes Arduino components for Windows 11 with IDF 5.1.4 when building Arduino as IDF component.
2024-09-13 11:30:38 +03:00
me-no-dev
8c25325e18 fix(webserver): OTHER_AUTH will leak memory 2024-09-13 11:10:12 +03:00
TD-er
8a87df3b95
NetworkClientRxBuffer::clear() may not always clear (#10288) (#10331)
Fixes: #10288
2024-09-13 10:50:06 +03:00
Me No Dev
648094c733
fix(api): Update Arduino Stream class (#10328)
* fix(api): Update Arduino Stream class

Upstream code contains some fixes

* Update Stream.h

* ci(pre-commit): Apply automatic fixes

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2024-09-13 10:49:49 +03:00
Me No Dev
eda6d21d87
fix(events): Fix crash in getStdFunctionAddress (#10321) 2024-09-13 10:49:28 +03:00
Lucas Saavedra Vaz
4e9eb35752
feat(pre-commit): Add JSON formatter to pre-commit hooks (#10324) 2024-09-11 15:18:03 +03:00
Jan Procházka
1e04762e3a
fix(example): Fix compilation warnings in examples (#10311)
* fix(example): Fix compilation warnings in examples

* ci(pre-commit): Apply automatic fixes

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2024-09-10 16:25:18 +03:00
Me No Dev
d846311344
fix(scan): Make sure that we do not leak memory if reading the APs fails (#10312)
As it was written, it was possible to leak the scan result array if esp_wifi_scan_get_ap_records() failed. Change will ensure that the array is deleted in that case.
2024-09-10 16:18:48 +03:00
Me No Dev
2c4ce95e16
fix(i2c): Ensure that semaphore is properly given if init fails (#10313)
Currently code can return before semaphore is given, which can cause the bus to lock. Change makes sure that it's properly given in case of failure.
2024-09-10 16:18:16 +03:00
Lucas Saavedra Vaz
ef23d52d9b
docs(contrib): Add instructions on how to test changes (#10221)
* docs(contrib): Add instructions on how to test changes

* fix(path): Fix file path

* Remove manual hooks as they do not exist anymore in the repo

* Fix typo
2024-09-10 16:16:29 +03:00
Rodrigo Garcia
cbe0f2ff0d
OpenThread Example Improvement (#10299)
* feat(openthread): add extended example

Creates a new example that mixes different APIs

* feat(openthread): create cj.json file

Adds neessary CI file

* feat(openthread): improve the example

Update ExtendedRoterNode.ino with more use of API

* feat(openthread): improve the example

Adds OpenThread Native calls to the example

* feat(openthread): improve the example 

Update LeaderNode.ino example to add OpenThread Native calls.

* fix(openthread): bad formatting using space

Update keywords.txt to use TAB instead of SPACE in order to recognize correctly the keywords.

* fix(openthread): bad example file name - typo

Changed ExtendedRoterNode to ExtendedRouterNode - Typo error.

* feat(openthread): add extended example ci.json file

Added CI file to the example.

* fix(openthread): deleted bad file names in the example

Delete libraries/OpenThread/examples/SimpleThreadNetwork/ExtendedRoterNode directory

* fix(openthread): typo in commentaries

* fix(openthread): typo in commentaries

* ci(pre-commit): Apply automatic fixes

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2024-09-09 16:19:14 +03:00
Rodrigo Garcia
532d5f2fad
feat(tone): missing set tone channel implementation (#10305)
Adds the implementation to setToneChannel() declared in Arduino.h, but removed when movin from Arduino 2.x to 3.x.
2024-09-09 12:45:13 +03:00
Jan Procházka
2853b7c0a4
fix(ci): Log default FQBN if not passed (#10302) 2024-09-09 12:44:52 +03:00
Ha Thach
6264d6b72b
feat(esp32-s2/s3): update tinyuf2 for Adafruit board to 0.20.1 (#10300) 2024-09-09 12:40:38 +03:00
Unexpected Maker
c0dce69fc1
Added Unexpected Maker OMGS3 (#10298) 2024-09-09 12:40:23 +03:00
dependabot[bot]
eec855a09f
build(deps): bump cryptography from 42.0.7 to 43.0.1 in /tests (#10284)
Bumps [cryptography](https://github.com/pyca/cryptography) from 42.0.7 to 43.0.1.
- [Changelog](https://github.com/pyca/cryptography/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pyca/cryptography/compare/42.0.7...43.0.1)

---
updated-dependencies:
- dependency-name: cryptography
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-09 12:39:58 +03:00
Me No Dev
e964a2deab
fix(scan): Make sure scan struct is cleared before set (#10282) 2024-09-09 12:39:43 +03:00
Me No Dev
976bda6b49
fix(report): Print correct chip revision (#10277)
It was printed wrongly before. Actual revision is the value divided by 100 in float.
2024-09-09 12:39:30 +03:00
per1234
41cdbd99b7
fix(boards): Remove port property assoc. for non-unique VID/PID pairs (#10271)
The Arduino boards platform framework allows properties of a port to be associated with a board
definition. The Arduino development software will identify a port having the associated properties
as that board.

This should only be done for properties that are unique to the ports produced by that board model.
In cases where a board model does not produce a port with properties unique to that model, it is
irresponsible to associate those properties with the board definition as this will cause other
models to be inappropriately identified.

The authors of these board definitions associated them with non-unique USB VID/PID pairs so those
associations must be removed. The 303a:1001 VID/PID pair is of the hardware CDC serial port of the
native USB ESP32 chips. The others are stock VID/PID pairs of general purpose USB to serial bridge
chips that are used on many different board models.
2024-09-09 12:39:09 +03:00
Rodrigo Garcia
e70f4d3819
Adds HW Serial CDC as IDF component example (#10262)
* feat(hw_cdc): creates documentation for the example

Adds a README file that exaplains the example.

* feat(hw_cdc): create cmake config file

Adds necessary CMakeLists.txt file to the project with the HW CDC defines that will enable it.

* feat(hw_cdc): create sdkconfig.defaults

Adds necessary and minimum sdkconfig settings in order to make Arduino run as IDF Compoenent.

* feat(hw_cdc): create cmake config file

Create the Arduino Sketch source code CMakeLists.txt file that will include all source code files and header files in the proejct.

* feat(hw_cdc): create main.cpp

Adds the minimum Arduino Sketch that will print "Hello World!" in the HW Serial USB CDC port.

* feat(hw_cdc): create idf_component.yml

Adds necessary ESP32 Registry information in order to make ESP32 Arduino to be automatically included in the project as an IDF component.

* feat(hw_cdc): update main.cpp

adds code to wait for the user to open the Serial Monitor

* feat(hw_cdc): formating text code

Applying Code style and formating.

* feat(hw_cdc): adds the example to idf_component.yml

Adds the example to the list of example in the ESP32 Registry.

* ci(pre-commit): Apply automatic fixes

* fix(chw_cdc): typo fix

Fixed Typo in the documentation.

* fix(hw_cdc): fixed a commentary typo

Fixed commantary typo

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2024-09-02 13:21:05 +03:00
Ludovic BOUÉ
7a4587b4bd
Update variants for M5Dial and M5StampS3 (#10268)
Update variant for M5Dial which comes with 8MB of built-in Flash
Update variant for M5StampS3 which comes with 8MB of built-in Flash
2024-09-02 13:20:39 +03:00
per1234
f06f2d7b07
fix(boards): Correct typos in port prop. associations for "Bee" boards (#10276)
* fix(boards): Correct PID port property in "Bee Data Logger" board def

VID and PID port property values are hexadecimal literals and thus use the standard "0x" prefix.

Previously, this prefix was missing from the PID port property association in the definition of the
board definition of "Bee Data Logger" board. This typo caused ports having the 0x303a, 0x815C
VID/PID pair to not be identified as a "Bee Data Logger" board as intended.

* fix(boards): Correct property names for PID port property associations

These properties are intended to associate values of the PID port property with "Bee" board
definitions. A typo caused them to instead associatiate the values with the VID port property. The
result was that ports with this VID/PID pair were not identified by the Arduino development
software as the board model as intended.
2024-09-02 13:20:23 +03:00
Lucas Saavedra Vaz
0b8eedea5c
ci(release): Make workflows dependent on release completion (#10260) 2024-08-31 18:33:32 +03:00
Me No Dev
254c5e43f1
fix(http): Replace flush() with clear() in HTTPClient (#10269)
Following deprecation of flush()
2024-08-31 18:28:22 +03:00
Lucas Saavedra Vaz
4c1095b23f
ci(push): Use fqbn from ci.json (#10267) 2024-08-31 18:28:04 +03:00
Me No Dev
b2c805a139
fix(ppp): Fix PPP not working after reboot if no RST (#10264)
Modem will try to switch to CMUX and then back to COMMAND in order to allow communication with the modem.
2024-08-30 18:03:56 +03:00
Andreas Merkle
019855ff90
fix(littlefs): Use VFSImpl::exists() to avoid false error log (#10217)
* fix(littlefs): Use VFSImpl::exists() to avoid false error log

* fix(ffat): Use VFSImpl::exists() to avoid false error log

---------

Co-authored-by: Lucas Saavedra Vaz <32426024+lucasssvaz@users.noreply.github.com>
2024-08-30 18:01:23 +03:00
Me No Dev
396def3f83
IDF release/v5.1 e026fd1f (#10257) 2024-08-28 23:14:39 +03:00
Rodrigo Garcia
e5394ccef7
fix(arduino): changes definitions in cmakelists.txt file (#10259)
Fixes an issue related to ESP_MATTER component that defines a path using ESP32 as folder. Because Arduino defines ESP32 to 1, it causes an expansion error for folder using ESP32 folder name.
2024-08-28 22:46:48 +03:00
Lucas Saavedra Vaz
ef5c6b94b3
fix(release): Fix install test on release (#10256) 2024-08-28 22:21:17 +03:00
Lucas Saavedra Vaz
77d8095472
fix(release): Fix release script to use new archive method (#10255)
* fix(release): Fix release script to use new archive method

* Remove variable
2024-08-28 18:48:27 +03:00
Adriano Konzen
dd4a7d6c5e
feat(LEDC): Adds the ability to set the clock source for the LEDC (#10171)
* Adds the ability to set the clock source for the LEDC

* feat(LEDC): Adjusting function names to more suitable

* feat(LEDC):  Fix clock_source to static

* docs(ledc): Document ledc set and get clock source

* docs(ledc): Update ledcSetClockSource description

* ci(pre-commit): Apply automatic fixes

---------

Co-authored-by: Jan Prochazka <90197375+P-R-O-C-H-Y@users.noreply.github.com>
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2024-08-28 17:09:56 +03:00
Lucas Saavedra Vaz
683fea103c
docs(vale): Enable vale and fix errors (#10231)
* docs(vale): Enable vale and fix errors

* Apply suggestions
2024-08-28 15:48:18 +03:00
Lucas Saavedra Vaz
e04f050639
fix(spelling): Fix misspellings detected by codespell and enable it (#10232)
* fix(spelling): Fix misspellings detected by codespell and enable it

* change(tools): Push generated binaries to PR

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-08-28 15:43:02 +03:00
Lucas Saavedra Vaz
5ecda3a7cb
fix(get.py): Remove existing files before extracting (#10247)
* fix(get.py): Remove existing files before extracting

* change(tools): Push generated binaries to PR

* ci(pre-commit): Apply automatic fixes

* change(tools): Push generated binaries to PR

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2024-08-28 09:54:52 +03:00
Me No Dev
7633653019
fix(client): Make flush() call clear() and deprecate it (#10242)
This is a compromise for issues caused by https://github.com/espressif/arduino-esp32/pull/9453
2024-08-28 09:54:25 +03:00
Juraj Andrássy
df4518d6a1
fix: WebServer - change occurrence of client.flush() to clear() (#10234) 2024-08-28 09:53:59 +03:00
Juraj Andrássy
6f84a43611
fix: ArduinoOTA - change occurrence of client.flush() to clear() (#10233) 2024-08-28 09:53:43 +03:00
Rodrigo Garcia
99e68a0518
Change "neopixel" references to use RGB LED naming (#10225)
* fix(rgbled): fixes core rgbledWrite()

* fix(rgbled): fixes examples - rgbledWrite()

* fix(rgbled): fixes variants commetaries - rgbledWrite()

* fix(rgbled): examples and doc - use RGB_LED naming

* fix(rgbled): variants - use RGB_LED naming

* fix(rgbled): other places for RGB LED naming

* fix(typo): cores - rgbLed instead of rgbled

* fix(typo): examples - rgbLed instead of rgbled

* fix(typo): variants commentaties - rgbLed instead of rgbled

* fix(rgbled): bad file name

* fix(typo): typo and commentaries

Co-authored-by: Lucas Saavedra Vaz <32426024+lucasssvaz@users.noreply.github.com>

* fix(rgbled): deprecating neopixelWrite()

* fix(rgbled): use RGB LED naming

* fix(rgbled): document formatting

* fix(rgbled): neopixelWrite() is now deprecated

* fix(rgbled): removed attribute in wrong place

* just a git push test

* restart git bash test

* ci(pre-commit): Apply automatic fixes

* removed wrong test file

* fix(rgbled): new Arduino style depreacted attribute

---------

Co-authored-by: Lucas Saavedra Vaz <32426024+lucasssvaz@users.noreply.github.com>
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2024-08-28 09:53:24 +03:00
Me No Dev
0539ebf322
fix(chip): Return correct ESP32 chip model (#10243) 2024-08-26 15:02:22 +03:00
Y_hsiao_ch'un
dbdb40280a
Added variant for Waveshare ESP32-S3-Zero (#10241)
* Added variant for ESP32-S3-Zero

* Added variant for ESP32-S3-Zero

* Fixed CI failures due to I2C and SPI pin definitions

* Fixed custom partitions

* Fix the partition without ota

* Fix waveshare esp32-s3-zero partition table, add 4MB partition content

* Fix waveshare esp32-s3-zero partition table, add 4MB partition content

* Update tools/partitions/max_app_4MB.csv

Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com>

* change boards.txt

---------

Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com>
2024-08-26 13:09:48 +03:00
Xylopyrographer
4178e6643b
feat(boards): Add ESP32-2432S028R board support (#10235)
* Add ESP32-2432S028R dev board

Add support for the ESP32-2432S028R, aka Cheap Yellow Display (CYD) dev board.

* Add ESP32-2432S028R variant

Add ESP32-2432S028R, aka Cheap Yellow Display (CYD) variant

* Revise macro defined function names

Append brackets to all macro defined function names

* ci(pre-commit): Apply automatic fixes

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2024-08-26 11:51:18 +03:00
RichardHeltec
edc56a8eb0
feat(board):Add Heltec Vision Master series boards (#10198)
* feat(board):Add Heltec Vision Master series boards

* fix(board): remove VID/PID from all board definitions

* fix(board):change 'heltec_vision_master_xxx.build.board' to uppercase

* ci(pre-commit): Apply automatic fixes

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2024-08-26 11:46:30 +03:00
Lucas Saavedra Vaz
cd3d0bf569
fix(tests): Use proper API and check for required token (#10223) 2024-08-22 23:44:49 +03:00
Lucas Saavedra Vaz
60cbb6276a
fix(requirements): Avoid version conflicts (#10222) 2024-08-22 23:44:33 +03:00
Leandro Mattioli
6c4e9ee609
fix(timer): Typo - milis instead of millis (#10193)
* fix(timer): Typo - milis instead of millis.

* fix(doc0: format

fix CI error about format

---------

Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com>
2024-08-22 23:44:17 +03:00
Ivan Grokhotkov
00b3941de5
change(build): add -Werror=return-type to default C and C++ flags (#10216) 2024-08-22 21:55:40 +03:00
Lucas Saavedra Vaz
4098c53f5f
fix(get.py): Add version checking for installed tools (#10160)
* fix(get.py): Add version checking of installed tools

* change(tools): Push generated binaries to PR

* Fix for different file formats

* change(tools): Push generated binaries to PR

* fix paths

* change(tools): Push generated binaries to PR

* Move to using checksum

* change(tools): Push generated binaries to PR

* Clean code

* change(tools): Push generated binaries to PR

* Add checksum check for libs

* change(tools): Push generated binaries to PR

* ci(pre-commit): Apply automatic fixes

* change(tools): Push generated binaries to PR

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2024-08-21 22:37:43 +03:00