ESPHome 2025.9.0-dev
Loading...
Searching...
No Matches
esphome::esp32_ble Namespace Reference

Data Structures

class  BLEAdvertising
 
class  BLEDisableAction
 
class  BLEEnableAction
 
class  BLEEnabledCondition
 
class  BLEEvent
 
class  BLEStatusEventHandler
 
struct  conn_status_t
 
class  ESP32BLE
 
class  ESPBTUUID
 
class  GAPEventHandler
 
class  GAPScanEventHandler
 
class  GATTcEventHandler
 
class  GATTsEventHandler
 

Typedefs

using raw_adv_data_t
 

Enumerations

enum  IoCapability {
  IO_CAP_OUT = ESP_IO_CAP_OUT , IO_CAP_IO = ESP_IO_CAP_IO , IO_CAP_IN = ESP_IO_CAP_IN , IO_CAP_NONE = ESP_IO_CAP_NONE ,
  IO_CAP_KBDISP = ESP_IO_CAP_KBDISP
}
 
enum  BLEComponentState : uint8_t {
  BLE_COMPONENT_STATE_OFF = 0 , BLE_COMPONENT_STATE_DISABLE , BLE_COMPONENT_STATE_DISABLED , BLE_COMPONENT_STATE_ENABLE ,
  BLE_COMPONENT_STATE_ACTIVE
}
 

Functions

void load_ble_event (BLEEvent *event, esp_gap_ble_cb_event_t e, esp_ble_gap_cb_param_t *p)
 
void load_ble_event (BLEEvent *event, esp_gattc_cb_event_t e, esp_gatt_if_t i, esp_ble_gattc_cb_param_t *p)
 
void load_ble_event (BLEEvent *event, esp_gatts_cb_event_t e, esp_gatt_if_t i, esp_ble_gatts_cb_param_t *p)
 
template<typename... Args>
void enqueue_ble_event (Args... args)
 
template void enqueue_ble_event (esp_gap_ble_cb_event_t, esp_ble_gap_cb_param_t *)
 
template void enqueue_ble_event (esp_gatts_cb_event_t, esp_gatt_if_t, esp_ble_gatts_cb_param_t *)
 
template void enqueue_ble_event (esp_gattc_cb_event_t, esp_gatt_if_t, esp_ble_gattc_cb_param_t *)
 
uint64_t ble_addr_to_uint64 (const esp_bd_addr_t address)
 
struct __attribute__ ((packed)) BLEScanResult
 

Variables

ESP32BLEglobal_ble = nullptr
 

Typedef Documentation

◆ raw_adv_data_t

Initial value:
struct {
uint8_t *data;
size_t length;
esp_power_level_t power_level;
}
uint16_t length
Definition tt21100.cpp:0

Definition at line 18 of file ble_advertising.h.

Enumeration Type Documentation

◆ BLEComponentState

Enumerator
BLE_COMPONENT_STATE_OFF 

Nothing has been initialized yet.

BLE_COMPONENT_STATE_DISABLE 

BLE should be disabled on next loop.

BLE_COMPONENT_STATE_DISABLED 

BLE is disabled.

BLE_COMPONENT_STATE_ENABLE 

BLE should be enabled on next loop.

BLE_COMPONENT_STATE_ACTIVE 

BLE is active.

Definition at line 54 of file ble.h.

◆ IoCapability

Enumerator
IO_CAP_OUT 
IO_CAP_IO 
IO_CAP_IN 
IO_CAP_NONE 
IO_CAP_KBDISP 

Definition at line 46 of file ble.h.

Function Documentation

◆ __attribute__()

struct esphome::esp32_ble::__attribute__ ( (packed) )

Definition at line 1 of file ble_scan_result.h.

◆ ble_addr_to_uint64()

uint64_t esphome::esp32_ble::ble_addr_to_uint64 ( const esp_bd_addr_t address)

Definition at line 533 of file ble.cpp.

◆ enqueue_ble_event() [1/4]

template<typename... Args>
void esphome::esp32_ble::enqueue_ble_event ( Args... args)

Definition at line 427 of file ble.cpp.

◆ enqueue_ble_event() [2/4]

template void esphome::esp32_ble::enqueue_ble_event ( esp_gap_ble_cb_event_t ,
esp_ble_gap_cb_param_t *  )

◆ enqueue_ble_event() [3/4]

template void esphome::esp32_ble::enqueue_ble_event ( esp_gattc_cb_event_t ,
esp_gatt_if_t ,
esp_ble_gattc_cb_param_t *  )

◆ enqueue_ble_event() [4/4]

template void esphome::esp32_ble::enqueue_ble_event ( esp_gatts_cb_event_t ,
esp_gatt_if_t ,
esp_ble_gatts_cb_param_t *  )

◆ load_ble_event() [1/3]

void esphome::esp32_ble::load_ble_event ( BLEEvent * event,
esp_gap_ble_cb_event_t e,
esp_ble_gap_cb_param_t * p )

Definition at line 415 of file ble.cpp.

◆ load_ble_event() [2/3]

void esphome::esp32_ble::load_ble_event ( BLEEvent * event,
esp_gattc_cb_event_t e,
esp_gatt_if_t i,
esp_ble_gattc_cb_param_t * p )

Definition at line 419 of file ble.cpp.

◆ load_ble_event() [3/3]

void esphome::esp32_ble::load_ble_event ( BLEEvent * event,
esp_gatts_cb_event_t e,
esp_gatt_if_t i,
esp_ble_gatts_cb_param_t * p )

Definition at line 423 of file ble.cpp.

Variable Documentation

◆ global_ble

ESP32BLE * esphome::esp32_ble::global_ble = nullptr

Definition at line 544 of file ble.cpp.