NimBLE-Arduino 2.1.2
|
#include <ble_gatt.h>
Public Attributes | ||
uint8_t | op | |
union { | ||
struct { | ||
uint16_t handle | ||
const struct ble_gatt_svc_def * svc_def | ||
} svc | ||
struct { | ||
uint16_t def_handle | ||
uint16_t val_handle | ||
const struct ble_gatt_chr_def * chr_def | ||
const struct ble_gatt_svc_def * svc_def | ||
} chr | ||
struct { | ||
uint16_t handle | ||
const struct ble_gatt_dsc_def * dsc_def | ||
const struct ble_gatt_chr_def * chr_def | ||
const struct ble_gatt_svc_def * svc_def | ||
} dsc | ||
}; | ||
Context passed to the registration callback; represents the GATT service, characteristic, or descriptor being registered.
union { ... } ble_gatt_register_ctxt |
The value of the op field determines which field in this union is valid.
struct { ... } ble_gatt_register_ctxt::chr |
Characteristic; valid if op == BLE_GATT_REGISTER_OP_CHR.
const struct ble_gatt_chr_def* ble_gatt_register_ctxt::chr_def |
The characteristic definition representing the characteristic being registered.
The characteristic definition corresponding to the descriptor's parent characteristic.
uint16_t ble_gatt_register_ctxt::def_handle |
The ATT handle of the characteristic definition attribute.
struct { ... } ble_gatt_register_ctxt::dsc |
Descriptor; valid if op == BLE_GATT_REGISTER_OP_DSC.
const struct ble_gatt_dsc_def* ble_gatt_register_ctxt::dsc_def |
The descriptor definition corresponding to the descriptor being registered.
uint16_t ble_gatt_register_ctxt::handle |
The ATT handle of the service definition attribute.
The ATT handle of the descriptor definition attribute.
uint8_t ble_gatt_register_ctxt::op |
Indicates the gatt registration operation just performed. This is equal to one of the following values: o BLE_GATT_REGISTER_OP_SVC o BLE_GATT_REGISTER_OP_CHR o BLE_GATT_REGISTER_OP_DSC
struct { ... } ble_gatt_register_ctxt::svc |
Service; valid if op == BLE_GATT_REGISTER_OP_SVC.
const struct ble_gatt_svc_def* ble_gatt_register_ctxt::svc_def |
The service definition representing the service being registered.
The service definition corresponding to the characteristic's parent service.
The service definition corresponding to the descriptor's grandparent service
uint16_t ble_gatt_register_ctxt::val_handle |
The ATT handle of the characteristic value attribute.