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

◆ ble_lbs_on_button_change()

uint32_t ble_lbs_on_button_change ( struct ble_lbs * lbs,
uint16_t conn_handle,
uint8_t button_state )

#include <ble_lbs.h>

Function for sending a button state notification.

Parameters
[in]lbsLED Button Service structure.
[in]conn_handleHandle of the peripheral connection to which the button state notification will be sent.
[in]button_stateNew button state.
Return values
NRF_SUCCESSIf the notification was sent successfully.
NRF_ERROR_NULLIf lbs is NULL.
Returns
In addition, this function may return any error returned by the following SoftDevice functions:
  • sd_ble_gatts_hvx()