Add ble RSSI sensor for connected devices (#3860)

This commit is contained in:
RoboMagus
2022-10-12 04:23:56 +02:00
committed by GitHub
parent 19900b004b
commit 9f9980e338
6 changed files with 197 additions and 25 deletions
@@ -64,6 +64,13 @@ void BLEClient::gattc_event_handler(esp_gattc_cb_event_t event, esp_gatt_if_t es
}
}
void BLEClient::gap_event_handler(esp_gap_ble_cb_event_t event, esp_ble_gap_cb_param_t *param) {
BLEClientBase::gap_event_handler(event, param);
for (auto *node : this->nodes_)
node->gap_event_handler(event, param);
}
void BLEClient::set_state(espbt::ClientState state) {
BLEClientBase::set_state(state);
for (auto &node : nodes_)