1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-15 01:32:19 +01:00

Bluetooth advertising automation (#995)

* esp32_ble_tracker: introduce UUID comparison function

* ble_presence, ble_rssi: use new UUID comparison function

* esp32_ble_tracker: introduce automation on BLE advertising

* test2.yaml: remove deep_sleep due to firmware size restrictions
This commit is contained in:
puuu
2020-04-28 08:57:02 +09:00
committed by GitHub
parent 31ae337931
commit ba1222eae4
8 changed files with 221 additions and 66 deletions

View File

@@ -23,8 +23,12 @@ class ESPBTUUID {
static ESPBTUUID from_raw(const uint8_t *data);
ESPBTUUID as_128bit() const;
bool contains(uint8_t data1, uint8_t data2) const;
bool operator==(const ESPBTUUID &uuid) const;
esp_bt_uuid_t get_uuid();
std::string to_string();