2021-06-08 01:56:31 +02:00
|
|
|
BLE Component
|
|
|
|
=============
|
|
|
|
|
|
|
|
.. seo::
|
|
|
|
:description: Instructions for setting up Bluetooth LE in ESPHome.
|
|
|
|
:image: bluetooth.svg
|
|
|
|
|
2021-06-11 22:31:35 +02:00
|
|
|
The ``esp32_ble`` component in ESPHome sets up the Bluetooth LE stack on the device so that a :doc:`esp32_ble_server`
|
|
|
|
can run.
|
2021-06-08 01:56:31 +02:00
|
|
|
|
|
|
|
.. code-block:: yaml
|
|
|
|
|
|
|
|
# Example configuration
|
|
|
|
|
|
|
|
esp32_ble:
|
2023-05-01 23:25:15 +02:00
|
|
|
io_capability: keyboard_only
|
2021-06-08 01:56:31 +02:00
|
|
|
|
2023-05-01 23:25:15 +02:00
|
|
|
Configuration variables:
|
|
|
|
------------------------
|
2021-06-08 01:56:31 +02:00
|
|
|
|
2023-05-01 23:25:15 +02:00
|
|
|
- **io_capability** (*Optional*, enum): The IO capability of this ESP32, used for securely connecting to other BLE devices. Defaults to ``none``.
|
|
|
|
|
|
|
|
- ``none`` - No IO capability (Connections that require PIN code authentication will fail)
|
|
|
|
- ``keyboard_only`` - Only a keyboard to enter PIN codes (or a fixed PIN code)
|
|
|
|
- ``display_only`` - Only a display to show PIN codes
|
|
|
|
- ``keyboard_display`` - A keyboard and a display
|
|
|
|
- ``display_yes_no`` - A display to show PIN codes and buttons to confirm or deny the connection
|
2021-06-08 01:56:31 +02:00
|
|
|
|
|
|
|
See Also
|
|
|
|
--------
|
|
|
|
|
2021-06-11 22:31:35 +02:00
|
|
|
- :doc:`esp32_ble_server`
|
2021-06-08 01:56:31 +02:00
|
|
|
- :doc:`esp32_improv`
|
|
|
|
- :apiref:`esp32_ble/ble.h`
|
|
|
|
- :ghedit:`Edit`
|