Add info about work-around for ble_tracker and wifi use on single core (#3502)

chips.
This commit is contained in:
Clyde Stubbs 2024-02-27 03:04:03 -03:00 committed by GitHub
parent d0cb0a4188
commit b8e58d401d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 23 additions and 0 deletions

View File

@ -264,6 +264,29 @@ Stops the bluetooth scanning. It can be started again with the above start scan
on_...:
- esp32_ble_tracker.stop_scan:
Use on single-core chips
------------------------
On dual-core devices the WiFi component runs on core 1, while this component runs on core 0.
When using this component on single core chips such as the ESP32-C3 both WiFi and ``ble_tracker`` must run on
the same core, and this has been known to cause issues when connecting to WiFi. A work-around for this is to
enable the tracker only while the native API is connected. The following config will achieve this:
.. code-block:: yaml
esp32_ble_tracker:
scan_parameters:
continuous: false
api:
encryption:
key: !secret encryption_key
on_client_connected:
- esp32_ble_tracker.start_scan:
continuous: true
on_client_disconnected:
- esp32_ble_tracker.stop_scan:
See Also
--------