1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-12 08:12:22 +01:00

Send device address type alongside ble advertisements (#4115)

This commit is contained in:
Jesse Hills
2022-11-29 17:24:21 +13:00
committed by GitHub
parent bc5c2d4eb4
commit 120327866f
5 changed files with 50 additions and 1 deletions

View File

@@ -68,6 +68,7 @@ class BLEClientBase : public espbt::ESPBTClient, public Component {
int get_gattc_if() const { return this->gattc_if_; }
uint8_t *get_remote_bda() { return this->remote_bda_; }
esp_ble_addr_type_t get_remote_addr_type() const { return this->remote_addr_type_; }
void set_remote_addr_type(esp_ble_addr_type_t address_type) { this->remote_addr_type_ = address_type; }
uint16_t get_conn_id() const { return this->conn_id_; }
uint64_t get_address() const { return this->address_; }