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

◆ BT_GATT_POOL_SVC

#define BT_GATT_POOL_SVC (   _gp,
  _svc_uuid_init 
)

#include <include/bluetooth/gatt_pool.h>

Value:
do { \
int _ret; \
const struct bt_uuid *_svc_uuid = _svc_uuid_init; \
_ret = bt_gatt_pool_svc_alloc(_gp, _svc_uuid); \
__ASSERT_NO_MSG(!_ret); \
(void)_ret; \
} while (0)
int bt_gatt_pool_svc_alloc(struct bt_gatt_pool *gp, struct bt_uuid const *svc_uuid)
Take a primary service descriptor from the pool.

Register a primary service descriptor.

Parameters
_gpGATT service object with dynamic attribute allocation.
_svc_uuid_initService UUID.