ESPHome  2024.11.0
Public Types | Public Member Functions | Data Fields
esphome::esp32_ble::BLEEvent Class Reference

#include <ble_event.h>

Public Types

enum  ble_event_t : uint8_t { GAP, GATTC, GATTS }
 

Public Member Functions

 BLEEvent (esp_gap_ble_cb_event_t e, esp_ble_gap_cb_param_t *p)
 
 BLEEvent (esp_gattc_cb_event_t e, esp_gatt_if_t i, esp_ble_gattc_cb_param_t *p)
 
 BLEEvent (esp_gatts_cb_event_t e, esp_gatt_if_t i, esp_ble_gatts_cb_param_t *p)
 

Data Fields

union {
   struct gap_event {
      esp_gap_ble_cb_event_t   gap_event
 
      esp_ble_gap_cb_param_t   gap_param
 
   }   gap
 
   struct gattc_event {
      esp_gattc_cb_event_t   gattc_event
 
      esp_gatt_if_t   gattc_if
 
      esp_ble_gattc_cb_param_t   gattc_param
 
   }   gattc
 
   struct gatts_event {
      esp_gatts_cb_event_t   gatts_event
 
      esp_gatt_if_t   gatts_if
 
      esp_ble_gatts_cb_param_t   gatts_param
 
   }   gatts
 
event_
 
std::vector< uint8_t > data {}
 
enum esphome::esp32_ble::BLEEvent::ble_event_t type_
 

Detailed Description

Definition at line 15 of file ble_event.h.

Member Enumeration Documentation

◆ ble_event_t

Enumerator
GAP 
GATTC 
GATTS 

Definition at line 84 of file ble_event.h.

Constructor & Destructor Documentation

◆ BLEEvent() [1/3]

esphome::esp32_ble::BLEEvent::BLEEvent ( esp_gap_ble_cb_event_t  e,
esp_ble_gap_cb_param_t *  p 
)
inline

Definition at line 17 of file ble_event.h.

◆ BLEEvent() [2/3]

esphome::esp32_ble::BLEEvent::BLEEvent ( esp_gattc_cb_event_t  e,
esp_gatt_if_t  i,
esp_ble_gattc_cb_param_t *  p 
)
inline

Definition at line 23 of file ble_event.h.

◆ BLEEvent() [3/3]

esphome::esp32_ble::BLEEvent::BLEEvent ( esp_gatts_cb_event_t  e,
esp_gatt_if_t  i,
esp_ble_gatts_cb_param_t *  p 
)
inline

Definition at line 44 of file ble_event.h.

Field Documentation

◆ data

std::vector<uint8_t> esphome::esp32_ble::BLEEvent::data {}

Definition at line 82 of file ble_event.h.

◆ event_

union { ... } esphome::esp32_ble::BLEEvent::event_

◆ gap

struct { ... } ::gap_event esphome::esp32_ble::BLEEvent::gap

◆ gap_event

esp_gap_ble_cb_event_t esphome::esp32_ble::BLEEvent::gap_event

Definition at line 63 of file ble_event.h.

◆ gap_param

esp_ble_gap_cb_param_t esphome::esp32_ble::BLEEvent::gap_param

Definition at line 64 of file ble_event.h.

◆ gattc

struct { ... } ::gattc_event esphome::esp32_ble::BLEEvent::gattc

◆ gattc_event

esp_gattc_cb_event_t esphome::esp32_ble::BLEEvent::gattc_event

Definition at line 69 of file ble_event.h.

◆ gattc_if

esp_gatt_if_t esphome::esp32_ble::BLEEvent::gattc_if

Definition at line 70 of file ble_event.h.

◆ gattc_param

esp_ble_gattc_cb_param_t esphome::esp32_ble::BLEEvent::gattc_param

Definition at line 71 of file ble_event.h.

◆ gatts

struct { ... } ::gatts_event esphome::esp32_ble::BLEEvent::gatts

◆ gatts_event

esp_gatts_cb_event_t esphome::esp32_ble::BLEEvent::gatts_event

Definition at line 76 of file ble_event.h.

◆ gatts_if

esp_gatt_if_t esphome::esp32_ble::BLEEvent::gatts_if

Definition at line 77 of file ble_event.h.

◆ gatts_param

esp_ble_gatts_cb_param_t esphome::esp32_ble::BLEEvent::gatts_param

Definition at line 78 of file ble_event.h.

◆ type_

enum esphome::esp32_ble::BLEEvent::ble_event_t esphome::esp32_ble::BLEEvent::type_

The documentation for this class was generated from the following file: