1
0
mirror of https://github.com/esphome/esphome.git synced 2025-11-15 06:15:47 +00:00

Added access to ble_scan_result_evt_param as get_scan_result (#2854)

This commit is contained in:
myhomeiot
2021-12-13 02:08:18 +02:00
committed by GitHub
parent 4bb58b2de9
commit a79c6aa9e0
2 changed files with 4 additions and 0 deletions

View File

@@ -483,6 +483,7 @@ optional<ESPBLEiBeacon> ESPBLEiBeacon::from_manufacturer_data(const ServiceData
}
void ESPBTDevice::parse_scan_rst(const esp_ble_gap_cb_param_t::ble_scan_result_evt_param &param) {
this->scan_result_ = param;
for (uint8_t i = 0; i < ESP_BD_ADDR_LEN; i++)
this->address_[i] = param.bda[i];
this->address_type_ = param.ble_addr_type;