[wifi] Add runtime suppression of post-connect roaming scans (#17012)

Co-authored-by: J. Nick Koston <nick+github@koston.org>
This commit is contained in:
Kevin Ahrendt
2026-06-18 09:31:49 -04:00
committed by GitHub
parent 1753ccd811
commit bf12af4645
5 changed files with 84 additions and 2 deletions

View File

@@ -1,15 +1,19 @@
psram:
# Tests the high performance request and release; requires the USE_WIFI_RUNTIME_POWER_SAVE define
# Tests the high performance and roaming suppression request/release APIs;
# requires the USE_WIFI_RUNTIME_POWER_SAVE and USE_WIFI_RUNTIME_ROAMING_SUPPRESSION defines
esphome:
platformio_options:
build_flags:
- "-DUSE_WIFI_RUNTIME_POWER_SAVE"
- "-DUSE_WIFI_RUNTIME_ROAMING_SUPPRESSION"
on_boot:
- then:
- lambda: |-
esphome::wifi::global_wifi_component->request_high_performance();
esphome::wifi::global_wifi_component->release_high_performance();
esphome::wifi::global_wifi_component->request_roaming_suppression();
esphome::wifi::global_wifi_component->release_roaming_suppression();
wifi:
use_psram: true