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

feat: support ble_client that use security w/o pin codes (#3320)

This commit is contained in:
Branden Cash
2022-04-03 14:35:48 -07:00
committed by GitHub
parent b0bd9e0a34
commit fa1b5117fd
4 changed files with 42 additions and 5 deletions

View File

@@ -155,6 +155,7 @@ class ESPBTClient : public ESPBTDeviceListener {
public:
virtual void gattc_event_handler(esp_gattc_cb_event_t event, esp_gatt_if_t gattc_if,
esp_ble_gattc_cb_param_t *param) = 0;
virtual void gap_event_handler(esp_gap_ble_cb_event_t event, esp_ble_gap_cb_param_t *param) = 0;
virtual void connect() = 0;
void set_state(ClientState st) { this->state_ = st; }
ClientState state() const { return state_; }