ESPHome 2025.6.3
Loading...
Searching...
No Matches
esphome::esp32_ble::BLEEvent Class Reference

#include <ble_event.h>

Data Structures

struct  RSSICompleteData
 
struct  StatusOnlyData
 

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)
 
 ~BLEEvent ()
 
 BLEEvent ()
 
void cleanup_heap_data ()
 
void load_gap_event (esp_gap_ble_cb_event_t e, esp_ble_gap_cb_param_t *p)
 
void load_gattc_event (esp_gattc_cb_event_t e, esp_gatt_if_t i, esp_ble_gattc_cb_param_t *p)
 
void load_gatts_event (esp_gatts_cb_event_t e, esp_gatt_if_t i, esp_ble_gatts_cb_param_t *p)
 
 BLEEvent (const BLEEvent &)=delete
 
BLEEventoperator= (const BLEEvent &)=delete
 
ble_event_t type () const
 
esp_gap_ble_cb_event_t gap_event_type () const
 
const BLEScanResult & scan_result () const
 
esp_bt_status_t scan_complete_status () const
 
esp_bt_status_t adv_complete_status () const
 
const RSSICompleteDataread_rssi_complete () const
 
const esp_ble_sec_t & security () const
 

Data Fields

union { 
 
   struct gap_event
 
      esp_gap_ble_cb_event_t   gap_event 
 
      union { 
 
         BLEScanResult   scan_result 
 
         StatusOnlyData   scan_complete 
 
         StatusOnlyData   adv_complete 
 
         RSSICompleteData   read_rssi_complete 
 
         esp_ble_sec_t   security 
 
      }  
 
   }   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 
 
      std::vector< uint8_t > *   data 
 
   }   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 
 
      std::vector< uint8_t > *   data 
 
   }   gatts 
 
event_ 
 
ble_event_t type_
 

Detailed Description

Definition at line 90 of file ble_event.h.

Member Enumeration Documentation

◆ ble_event_t

Enumerator
GAP 
GATTC 
GATTS 

Definition at line 93 of file ble_event.h.

Constructor & Destructor Documentation

◆ BLEEvent() [1/5]

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

Definition at line 111 of file ble_event.h.

◆ BLEEvent() [2/5]

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 121 of file ble_event.h.

◆ BLEEvent() [3/5]

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 131 of file ble_event.h.

◆ ~BLEEvent()

esphome::esp32_ble::BLEEvent::~BLEEvent ( )
inline

Definition at line 137 of file ble_event.h.

◆ BLEEvent() [4/5]

esphome::esp32_ble::BLEEvent::BLEEvent ( )
inline

Definition at line 140 of file ble_event.h.

◆ BLEEvent() [5/5]

esphome::esp32_ble::BLEEvent::BLEEvent ( const BLEEvent & )
delete

Member Function Documentation

◆ adv_complete_status()

esp_bt_status_t esphome::esp32_ble::BLEEvent::adv_complete_status ( ) const
inline

Definition at line 232 of file ble_event.h.

◆ cleanup_heap_data()

void esphome::esp32_ble::BLEEvent::cleanup_heap_data ( )
inline

Definition at line 143 of file ble_event.h.

◆ gap_event_type()

esp_gap_ble_cb_event_t esphome::esp32_ble::BLEEvent::gap_event_type ( ) const
inline

Definition at line 229 of file ble_event.h.

◆ load_gap_event()

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

Definition at line 163 of file ble_event.h.

◆ load_gattc_event()

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

Definition at line 169 of file ble_event.h.

◆ load_gatts_event()

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

Definition at line 175 of file ble_event.h.

◆ operator=()

BLEEvent & esphome::esp32_ble::BLEEvent::operator= ( const BLEEvent & )
delete

◆ read_rssi_complete()

const RSSICompleteData & esphome::esp32_ble::BLEEvent::read_rssi_complete ( ) const
inline

Definition at line 233 of file ble_event.h.

◆ scan_complete_status()

esp_bt_status_t esphome::esp32_ble::BLEEvent::scan_complete_status ( ) const
inline

Definition at line 231 of file ble_event.h.

◆ scan_result()

const BLEScanResult & esphome::esp32_ble::BLEEvent::scan_result ( ) const
inline

Definition at line 230 of file ble_event.h.

◆ security()

const esp_ble_sec_t & esphome::esp32_ble::BLEEvent::security ( ) const
inline

Definition at line 234 of file ble_event.h.

◆ type()

ble_event_t esphome::esp32_ble::BLEEvent::type ( ) const
inline

Definition at line 228 of file ble_event.h.

Field Documentation

◆ adv_complete

StatusOnlyData esphome::esp32_ble::BLEEvent::adv_complete

Definition at line 198 of file ble_event.h.

◆ data

std::vector<uint8_t>* esphome::esp32_ble::BLEEvent::data

Definition at line 213 of file ble_event.h.

◆ [union]

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

◆ [struct]

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 188 of file ble_event.h.

◆ [struct]

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

◆ gattc_event

esp_gattc_cb_event_t esphome::esp32_ble::BLEEvent::gattc_event

Definition at line 210 of file ble_event.h.

◆ gattc_if

esp_gatt_if_t esphome::esp32_ble::BLEEvent::gattc_if

Definition at line 211 of file ble_event.h.

◆ gattc_param

esp_ble_gattc_cb_param_t* esphome::esp32_ble::BLEEvent::gattc_param

Definition at line 212 of file ble_event.h.

◆ [struct]

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

◆ gatts_event

esp_gatts_cb_event_t esphome::esp32_ble::BLEEvent::gatts_event

Definition at line 218 of file ble_event.h.

◆ gatts_if

esp_gatt_if_t esphome::esp32_ble::BLEEvent::gatts_if

Definition at line 219 of file ble_event.h.

◆ gatts_param

esp_ble_gatts_cb_param_t* esphome::esp32_ble::BLEEvent::gatts_param

Definition at line 220 of file ble_event.h.

◆ read_rssi_complete

RSSICompleteData esphome::esp32_ble::BLEEvent::read_rssi_complete

Definition at line 201 of file ble_event.h.

◆ scan_complete

StatusOnlyData esphome::esp32_ble::BLEEvent::scan_complete

Definition at line 194 of file ble_event.h.

◆ scan_result

BLEScanResult esphome::esp32_ble::BLEEvent::scan_result

Definition at line 190 of file ble_event.h.

◆ security

esp_ble_sec_t esphome::esp32_ble::BLEEvent::security

Definition at line 204 of file ble_event.h.

◆ type_

ble_event_t esphome::esp32_ble::BLEEvent::type_

Definition at line 225 of file ble_event.h.


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