int ble_gatts_add_svcs(const struct ble_gatt_svc_def *svcs)
Queues a set of service definitions for registration. All services queued in this manner get registered when ble_hs_init() is called.
Parameter | Description |
---|---|
svcs | An array of service definitions to queue for registration. This array must be terminated with an entry whose ‘type’ equals 0. |
Value | Condition |
---|---|
0 | Success. |
BLE_HS_ENOMEM | Heap exhaustion. |