* Free list returned by wlan_sta_scan_result()
* scanAlloc improvements
There were a few things I didn't like about this function:
1) realloc() was called a bit too often.
2) if realloc() failed, the previous memory was not freed.
3) scanAlloc returned previous count or 255 on error. But there was no real check for error and 255 could've been used as index to null. I think it's better to simple return boolean.
4) scanAlloc was clearing memory only up to (and excluding) the new entries.
* Corrected clearing new entries in scanAlloc
* scanAlloc() now returns number of allocated items
* Fixed compilation issues related to goto.
* Update ESPHome documentation
* Update note format
* Switch to https github format, give manual PR checkout instructions until a better method is found.
* Fix yaml sample spacing
* Fix indent
* Add addon migration info
* Replace spaces with tabs
---------
Co-authored-by: Kuba Szczodrzyński <kuba@szczodrzynski.pl>
* Switch to bk_wlan_start_sta_adv for specific bssid control.
* Allow split sta/adv_sta configs.
* Add wifi_mode back for regular STA mode.
* Fix apparent bug of setting null/empty wifi key.
Reset STA_ADV_CFG.dhcp_mode in reconnect, as it seems to not survive for some reason.
Do les _CFG setting in reconnect()
* Move all _CFG setting to begin()
* Fix dhcp_mode in STA_ADV_CFG.
* Remove no longer necessary dhcp_mode re-set.
* Formatting cleanups.
* Formatting.
* Update cores/beken-72xx/arduino/libraries/WiFi/WiFiSTA.cpp
* Apply suggestions from code review
---------
Co-authored-by: Kuba Szczodrzyński <kuba@szczodrzynski.pl>
The docs about using docker compose for libre tuya had an error.
When setting what image to use in compose you dont have to put docker pull, just the image you are going to use
* Added description of some UPK keys
* More keys described.
This time by experimenting on my PIR-enabled lamp.
Motion is reported correctly via GPIO defined as pirin_pin.
I am also trying to set the PIR sensitivity by applying PWM to the pirsense_pin, and I _think_ it works. More experiments are needed.
* Add UPK2ESPHome link, reformat table
* Add descriptions from BK7231N SDK
* Update docs/resources/tuya-pin-config.md
* Corrected description of cwmaxp
* Description of ambient light sensor values
---------
Co-authored-by: Kuba Szczodrzyński <kuba@szczodrzynski.pl>
* Initial support code for Deep Sleep
* Global functions
* Remove unnecessary override
* clang-format
* Support for multiple pins
* Fix math
* Add a way to unset GPIOs
* Clang format
* Update brief
---------
Co-authored-by: Kuba Szczodrzyński <kuba@szczodrzynski.pl>
* platform/realtek-ambz: Improve flashing guide
Known USB adapter compatibility issues. Emphasize, so that the paragraph is
easier to notice.
Signed-off-by: Pavel Fedin <pavel_fedin@mail.ru>
* base/wr2: Add UART2 test pads to the WR2 diagram
The module has UART2, necessary for flashing, only on test pads. Document this.
Signed-off-by: Pavel Fedin <pavel_fedin@mail.ru>
* Move test pads to separate files, update variants
* Update wiring guide
---------
Signed-off-by: Pavel Fedin <pavel_fedin@mail.ru>
Co-authored-by: Kuba Szczodrzyński <kuba@szczodrzynski.pl>