* made some fix to the ESP32 I2S simple tone example
* edit the I2S - simple tone example
* edit the I2S - simple tone example
* some edit
* edit comment
* edit
* edit
* ci(pre-commit): Apply automatic fixes
---------
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
AsyncUDP::listenMulticast() properly receives packets sent to IPv4
multicast addresses like 239.1.2.3, but it is not receiving packets sent
to IPv6 multicast addresses like ff12::6ood:cafe.
The root cause is a bit hidden: listen(NULL, port) would match
AsyncUDP::listen(const ip_addr_t *addr, uint16_t port), which calls
_udp_bind(_pcb, addr, port), which uses the lwIP API to call
udp_bind(struct udp_pcb *pcb, const ip_addr_t *ipaddr, u16_t port) at
the end. If lwIP has LWIP_IPV4 enabled, it checks if ipaddr == NULL and
sets it to IP4_ADDR_ANY. So an IPv6 address is never bound.
This fix checks the IP address passed to AsyncUDP::listenMulticast(). If
it is an IPv6 address, it constructs and passes the IPv6 any address
(::); otherwise (IPv4), it constructs and passes the IPv4 any address
(0.0.0.0).
* feat(zigbee): Support min max for Analog EP
* feat(zigbee): Use cfloat FLT_MAX
* ci(pre-commit): Apply automatic fixes
---------
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
* feat(ap): Add support for DHCP Captive Portal (opt 114)
* feat(ap): No need to guard the function
* ci(pre-commit): Apply automatic fixes
---------
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
HTTP 204 is a successful return code which indicates No Content. While it's appropriate to return a 304 if the server has content for a device but it hasn't change, it is more accurate for a server to return a 204 if it simply doesn't have any firmware files for a particular device.
Co-authored-by: Me No Dev <me-no-dev@users.noreply.github.com>
* feat(zigbee): Add AC DC ElectricalMeasurement support
* ci(pre-commit): Apply automatic fixes
* ci(): fix precommit codespell
* ci(pre-commit): Add spaces between numbers and units
---------
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
Co-authored-by: Me No Dev <me-no-dev@users.noreply.github.com>
* feat(esp32): Zigbee power outlet example
Zigbee power outlet example
* feat(esp32): Zigbee power outlet example
Change username
* feat(esp32): Zigbee power outlet example
Remove old comment
* fix(zigbee): fix power outlet compile errors and update example
* fix(example): Update readme
* fix(example): Update ci json file
* ci(pre-commit): Apply automatic fixes
* fix(): precommit codespell
---------
Co-authored-by: Jan Procházka <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>
* feat(uart): simplifies UART example based on MODBUS standard
* fix(uart): fixes a uart example typo
* feat(uart): replaces UART0 by Serial0 in the code
* ci(pre-commit): Apply automatic fixes
* fix(uart): typo error message in commentary
---------
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
* Add files via upload
* Add files via upload
* Update SPI.h
* Update esp32-hal-spi.c
renamed invert_out to ss_invert to be more intuitive
* Update esp32-hal-spi.h
Removed the out from the function name spiSSInvertout.
* Update SPI.cpp
Removed the out from the function name spiSSInvertout.
* Update cores/esp32/esp32-hal-spi.c
Co-authored-by: Lucas Saavedra Vaz <32426024+lucasssvaz@users.noreply.github.com>
* ci(pre-commit): Apply automatic fixes
---------
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>
* fix(zigbeeEP): review of names and memory allocation
* fix(zigbeeEP): destructor shall free any allocated memory
* fix(zigbee_ep): forgotten var name change
* feat(zigbee_ep): use static heap memory for manufacturer and model names
* feat(zigbee_ep): changed model and manufacturer to heap
* feat(zigbee_ep): use static heap memory allocation
* fix(zigbee_ep): using stack only for adding attribute
* feat(zigbee_ep): reverting back read data type
* fix(zigbee_ep): rooling back to use malloc for remote attr reading
* feat(zigbee_ep): check malloc return for null
* fix(zigbee_ep): replace nullptr by NULL after C malloc()
* ci(pre-commit): Apply automatic fixes
* fix(zigbee_ep): fix variable scope
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* fix(zigbee_ep): fix variable scope
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
---------
Co-authored-by: Jan Procházka <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>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* feat(zigbee): Add checks on setting attrs and commands
* feat(zigbee): Add error info in the logs
* fix(zigbee): Fix memory leak, print esp_zb_zcl_status_t error, remove analogValue from analog EP
* feat(example): Update factoryResetoption in sleepy example
* fix(zigbee): Add error checks to Illuminance EP
* fix(zigbee): Return false on first error hit
* fix(zigbee): Apply same formatting on all returns
* fix(zigbee): Add check when adding a OTA cluster
* fix(zigbee): release locks before returning
* fix(zigbee): use correct return in doorWindowHandle
* fix/zigbee): Add missing return in WindowCovering
* fix(zigbee): Added a note of future task
* ci(pre-commit): Apply automatic fixes
---------
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
* fix: BLEAdvertising methods return error codes
Some methods returned void even if they could produce an error, in which case they failed silently. They now return the corresponding error code.
* fix: methods which could error out return bool
Changed from returning esp_error_t, in order to be more arduino compatible.
---------
Co-authored-by: Sugar Glider <rodrigo.garcia@espressif.com>
* fix(eth): Set the ETH properties at the correct time
* ci(pre-commit): Apply automatic fixes
---------
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
* fix(rmt): Fixed protocol name in RMTReadXJT examples
I couldn't find a protocol called D12.
I found LR12 so I'll fix that.
* feat(RMT): changing example commentary to reflect D16 protocol
---------
Co-authored-by: Sugar Glider <rodrigo.garcia@espressif.com>
* feat(wifi): Add support for 2.4GHz and 5GHz band switching
* ci(pre-commit): Apply automatic fixes
---------
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
* feat(zigbee): Save network channel after 1st joining for faster rejoin
* ci(pre-commit): Apply automatic fixes
* feat(zigbee): Add channel mask reset after timeout
* feat(zigbee): Add the resetChannelMask to all Begin methods
* feaz(zigbee): Move function to private and add set method
* fix(example): Remove test from device mode name
* ci(pre-commit): Apply automatic fixes
---------
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
* fix(matter): itshall set digital mode before digitalWrite
* fix(matter): example must set pin in digital mode before writting
* fix(matter): example shall set digital mode before writing
* fix(matter): digitalMode necessary before digitalWrite(LOW)
* fix(matter): example must set digital mode after analogwrite
* fix(matter): wrong copy paste
* ci(pre-commit): Apply automatic fixes
---------
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
* fix(wifi): Disable properly LR mode if it was enabled before
* ci(pre-commit): Apply automatic fixes
---------
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
* ci(zigbee): Check if Zigbee is enabled for CI tests
* ci(zigbee): Fix requirements
* fix(zigbee): Use LED_BUILTIN for range extender
* fix(zigbee): Use default GPIO if LED_BUILTINnot defined
* IDF release/v5.4 bcb3c32d
* fix(zigbee): Remove the need of native ieee802154 radio
---------
Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com>
* feat(i2c): Add support for the new I2C driver in IDF v5.4
* fix(build): Add the new driver to CMakeLists.txt
* fix(i2c): Guard sleep retention
Not all chips can restore I2C bus after light sleep
* ci(pre-commit): Apply automatic fixes
---------
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
* feat(zigbee): Support HSV color commands
* ci(pre-commit): Apply automatic fixes
* feat(zigbee): Add hue and sat attributes and update color capabilities
* ci(pre-commit): Apply automatic fixes
---------
Co-authored-by: Me No Dev <me-no-dev@users.noreply.github.com>
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
* feat(zigbee): Add OTA client cluster support
* feat(zigbee): Add conditions to reject OTA upgrade
* feat(zigbee): Add newest version of OTA handler
* fix(zigbee): Fix errors and warnings, swap parameters order
* feat(zigbee): Add simple OTA Client example
* ci(pre-commit): Apply automatic fixes
---------
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
* fix(logging): Corrected FPS calculation
Previously, last_frame was only updated once at the beginning of stream_handler,
leading to incorrect FPS and avg_frame_time computation.
This commit ensures last_frame is updated on each iteration after last FPS computation,
resulting in accurate FPS logging.
Fixes#10920
* Revert "fix(logging): Corrected FPS calculation"
This reverts commit 0bb7b9555e7661c72dc3376cf8a001c6fd3758c8.
* fix(loggin): Incorrect FPS computation fixed
Corrected and tested change in FPS computation, suggested by @me-no-dev and found working with correct numbers.
Previously, last_frame was only updated once at the beginning of stream_handler,
leading to incorrect FPS and avg_frame_time computation.
This commit ensures last_frame is updated on each iteration after last FPS computation,
resulting in accurate FPS logging.
Fixes#10920