nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches

◆ BT_GATT_POOL_CHRC

#define BT_GATT_POOL_CHRC (   _gp,
  _uuid,
  _props,
  _perm,
  _read,
  _write,
  _value 
)

#include <include/bluetooth/gatt_pool.h>

Value:
do { \
int _ret; \
const struct bt_gatt_attr _attr = BT_GATT_ATTRIBUTE( \
_uuid, _perm, _read, _write, _value); \
_ret = bt_gatt_pool_chrc_alloc(_gp, _props, &_attr); \
__ASSERT_NO_MSG(!_ret); \
(void)_ret; \
} while (0)
int bt_gatt_pool_chrc_alloc(struct bt_gatt_pool *gp, uint8_t props, struct bt_gatt_attr const *attr)
Take a characteristic descriptor from the pool.

Register a characteristic descriptor.

Parameters
_gpGATT service object with dynamic attribute allocation.
_uuidCharacteristic UUID.
_propsCharacteristic properties.
_permCharacteristic access permissions.
_readCharacteristic read callback.
_writeCharacteristic write callback.
_valueCharacteristic value.