nRF Connect SDK Bare Metal API 2.0.99
Loading...
Searching...
No Matches

◆ ble_lbs_init()

uint32_t ble_lbs_init ( struct ble_lbs * lbs,
const struct ble_lbs_config * cfg )

#include <ble_lbs.h>

Function for initializing the LED Button Service.

Parameters
[out]lbsLED 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]cfgInformation needed to initialize the service.
Return values
NRF_SUCCESSIf the service was initialized successfully.
NRF_ERROR_NULLIf 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()