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

◆ BT_GATT_POOL_DESC

#define BT_GATT_POOL_DESC (   _gp,
  _uuid,
  _perm,
  _read,
  _write,
  _value 
)

#include <include/bluetooth/gatt_pool.h>

Value:
do { \
int _ret; \
const struct bt_gatt_attr _descriptor = BT_GATT_DESCRIPTOR( \
_uuid, _perm, _read, _write, _value); \
_ret = bt_gatt_pool_desc_alloc(_gp, &_descriptor); \
__ASSERT_NO_MSG(!_ret); \
(void)_ret; \
} while (0)
int bt_gatt_pool_desc_alloc(struct bt_gatt_pool *gp, struct bt_gatt_attr const *descriptor)
Take an attribute descriptor from the pool.

Register an attribute descriptor.

Parameters
_gpGATT service object with dynamic attribute allocation.
_uuidDescriptor UUID.
_permDescriptor access permissions.
_readDescriptor read callback.
_writeDescriptor write callback.
_valueDescriptor value.