#include <ble_lbs.h>
Function for initializing the LED Button Service.
- Parameters
-
| [out] | lbs | LED Button Service structure. This structure must be supplied by the application. It is initialized by this function and will later be used to identify this particular service instance. |
| [in] | cfg | Information needed to initialize the service. |
- Return values
-
| NRF_SUCCESS | If the service was initialized successfully. |
| NRF_ERROR_NULL | If lbs or cfg is NULL. |
- Returns
- In addition, this function may return any error returned by the following SoftDevice functions:
- sd_ble_gatts_service_add()
- sd_ble_gatts_characteristic_add()
- sd_ble_uuid_vs_add()