mirror of
https://github.com/esphome/esphome.git
synced 2026-05-25 02:16:13 +08:00
[bthome] Add USE_ESP32_BLE_UUID define
Add USE_ESP32_BLE_UUID compile-time define to enable UUID support in the BTHome component, consistent with other BLE components like esp32_ble_beacon and esp32_ble_server.
This commit is contained in:
@@ -224,6 +224,7 @@ async def to_code(config):
|
||||
advertise_immediately = measurement[CONF_ADVERTISE_IMMEDIATELY]
|
||||
cg.add(var.add_binary_measurement(sens, object_id, advertise_immediately))
|
||||
|
||||
cg.add_define("USE_ESP32_BLE_UUID")
|
||||
cg.add_define("USE_ESP32_BLE_ADVERTISING")
|
||||
|
||||
add_idf_sdkconfig_option("CONFIG_BT_ENABLED", True)
|
||||
|
||||
Reference in New Issue
Block a user