ble_gatts_add_svcs

int
ble_gatts_add_svcs(const struct ble_gatt_svc_def *svcs)

Description

Queues a set of service definitions for registration. All services queued in this manner get registered when ble_hs_init() is called.

Parameters

ParameterDescription
svcsAn array of service definitions to queue for registration. This array must be terminated with an entry whose ‘type’ equals 0.

Returned values

ValueCondition
0Success.
BLE_HS_ENOMEMHeap exhaustion.