Files
esphome/tests/component_tests/esp32_ble_server
Jesse Hills 3fa9cd5abf [esp32_ble] Reference count BLE advertising
Advertising was started when the BLE server came up and never stopped, so a
device that auto-loads esp32_ble_server for esp32_improv advertised over BLE
forever - even with WiFi connected and Improv never started.

Components now request advertising with advertising_start() and release it
with advertising_stop(); the radio only advertises while at least one request
is held. The BLE server only requests it when the configuration defines
services or manufacturer data of its own, Improv holds a request for as long
as provisioning is possible, and a beacon holds one permanently.

Fixes https://github.com/esphome/esphome/issues/18938
2026-09-02 20:39:07 +12:00
..