1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-11 22:33:49 +01:00

iBeacon support for ble_presence (#1627)

This commit is contained in:
Petko Bordjukov
2021-09-02 02:46:15 +03:00
committed by GitHub
parent ea1b5e19f0
commit edcd88123d
7 changed files with 125 additions and 22 deletions

View File

@@ -60,5 +60,5 @@ async def to_code(config):
)
)
elif len(config[CONF_SERVICE_UUID]) == len(esp32_ble_tracker.bt_uuid128_format):
uuid128 = esp32_ble_tracker.as_hex_array(config[CONF_SERVICE_UUID])
uuid128 = esp32_ble_tracker.as_reversed_hex_array(config[CONF_SERVICE_UUID])
cg.add(var.set_service_uuid128(uuid128))