![]() |
nRF Connect SDK API 3.3.99
|
| 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.
| gp | GATT service object with dynamic attribute allocation. |
| svc_uuid | Service UUID. |
| 0 | Operation finished successfully. |
| -EINVAL | Invalid input value. |
| -ENOSPC | Number of arguments in svc would exceed array_size. |
| -ENOMEM | No internal memory in the gatt_poll module. |