nRF Connect SDK API 3.3.99
Loading...
Searching...
No Matches

◆ bt_lbs_init()

int bt_lbs_init ( struct bt_lbs_cb * callbacks)

#include <include/bluetooth/services/lbs.h>

Initialize the LBS Service.

Initializes the module with the given callbacks, used when:

  • The LED characteristic is written to by a remote device.
  • The button characteristic is read by a remote device.
Note
The GATT service is defined and registered statically at compile time.
Parameters
[in]callbacksStruct containing pointers to callback functions. Can be NULL if no callbacks are defined.
Return values
0If the operation was successful. Otherwise, a negative error code is returned.