10 static const char *
const TAG =
"ble_switch";
18 esp_ble_gattc_cb_param_t *param) {
20 case ESP_GATTC_CLOSE_EVT:
23 case ESP_GATTC_SEARCH_CMPL_EVT:
24 this->
node_state = espbt::ClientState::ESTABLISHED;
void dump_config() override
void gattc_event_handler(esp_gattc_cb_event_t event, esp_gatt_if_t gattc_if, esp_ble_gattc_cb_param_t *param) override
void set_enabled(bool enabled)
void write_state(bool state) override
Implementation of SPI Controller mode.
void publish_state(bool state)
Publish a state to the front-end from the back-end.
espbt::ClientState node_state