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

◆ bt_gatt_pool_svc_alloc()

int bt_gatt_pool_svc_alloc ( struct bt_gatt_pool * gp,
struct bt_uuid const * svc_uuid )

#include <include/bluetooth/gatt_pool.h>

Take a primary service descriptor from the pool.

Parameters
gpGATT service object with dynamic attribute allocation.
svc_uuidService UUID.
Return values
0Operation finished successfully.
-EINVALInvalid input value.
-ENOSPCNumber of arguments in svc would exceed array_size.
-ENOMEMNo internal memory in the gatt_poll module.