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

Add exposure notifications (#1135)

This commit is contained in:
Otto Winter
2020-07-14 18:47:17 +02:00
committed by GitHub
parent 412351fd1e
commit 465cd3d1f9
4 changed files with 109 additions and 0 deletions

View File

@@ -28,6 +28,7 @@ class ESPBTUUID {
bool contains(uint8_t data1, uint8_t data2) const;
bool operator==(const ESPBTUUID &uuid) const;
bool operator!=(const ESPBTUUID &uuid) const { return !(*this == uuid); }
esp_bt_uuid_t get_uuid();
@@ -74,6 +75,8 @@ class ESPBTDevice {
uint64_t address_uint64() const;
const uint8_t *address() const { return address_; }
esp_ble_addr_type_t get_address_type() const { return this->address_type_; }
int get_rssi() const { return rssi_; }
const std::string &get_name() const { return this->name_; }