ESPHome 2026.8.0b4
Loading...
Searching...
No Matches
esphome::ble_device_base::GattServiceTable Struct Reference

Borrowed view of the backend-owned service table. More...

#include <ble_gatt_client.h>

Data Fields

const GattServiceservices {nullptr}
 
const GattCharacteristiccharacteristics {nullptr}
 
const GattDescriptordescriptors {nullptr}
 
uint16_t service_count {0}
 
uint16_t characteristic_count {0}
 
uint16_t descriptor_count {0}
 

Detailed Description

Borrowed view of the backend-owned service table.

Valid from a successful on_service_discovery_done() until release_services(). Characteristics and descriptors are reached through the per-service/per-characteristic index ranges; the array totals let a consumer bounds-check those ranges instead of trusting the backend's discovery bookkeeping blindly.

Definition at line 73 of file ble_gatt_client.h.

Field Documentation

◆ characteristic_count

uint16_t esphome::ble_device_base::GattServiceTable::characteristic_count {0}

Definition at line 78 of file ble_gatt_client.h.

◆ characteristics

const GattCharacteristic* esphome::ble_device_base::GattServiceTable::characteristics {nullptr}

Definition at line 75 of file ble_gatt_client.h.

◆ descriptor_count

uint16_t esphome::ble_device_base::GattServiceTable::descriptor_count {0}

Definition at line 79 of file ble_gatt_client.h.

◆ descriptors

const GattDescriptor* esphome::ble_device_base::GattServiceTable::descriptors {nullptr}

Definition at line 76 of file ble_gatt_client.h.

◆ service_count

uint16_t esphome::ble_device_base::GattServiceTable::service_count {0}

Definition at line 77 of file ble_gatt_client.h.

◆ services

const GattService* esphome::ble_device_base::GattServiceTable::services {nullptr}

Definition at line 74 of file ble_gatt_client.h.


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