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

[esp32_ble] Add disconnect as a virtual function to `ESPBTClient` (#7705)

This commit is contained in:
Jesse Hills
2024-10-31 23:46:35 +13:00
committed by GitHub
parent 749b942132
commit cefbfb75bd
2 changed files with 3 additions and 2 deletions

View File

@@ -35,7 +35,7 @@ class BLEClientBase : public espbt::ESPBTClient, public Component {
void gap_event_handler(esp_gap_ble_cb_event_t event, esp_ble_gap_cb_param_t *param) override;
void connect() override;
esp_err_t pair();
void disconnect();
void disconnect() override;
void release_services();
bool connected() { return this->state_ == espbt::ClientState::ESTABLISHED; }