15 esp_ble_gattc_cb_param_t *param)
override {
17 case ESP_GATTC_NOTIFY_EVT: {
18 if (param->notify.handle == this->sensor_->handle)
22 case ESP_GATTC_REG_FOR_NOTIFY_EVT: {
25 if (param->reg_for_notify.status == ESP_GATT_OK && param->reg_for_notify.handle == this->sensor_->handle)
26 this->
node_state = espbt::ClientState::ESTABLISHED;
void trigger(Ts... x)
Inform the parent automation that the event has triggered.
Implementation of SPI Controller mode.
BLESensorNotifyTrigger(BLESensor *sensor)
void gattc_event_handler(esp_gattc_cb_event_t event, esp_gatt_if_t gattc_if, esp_ble_gattc_cb_param_t *param) override
float parse_char_value(uint8_t *value, uint16_t length)
esphome::sensor::Sensor * sensor
espbt::ClientState node_state