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

◆ ble_bms_auth_response()

uint32_t ble_bms_auth_response ( struct ble_bms * bms,
bool authorize )

#include <ble_bms.h>

Respond to an authorization request.

Call this function when receiving the BLE_BMS_EVT_AUTH event to respond to the service with an authorization result.

Parameters
[in]bmsBMS structure.
[in]authorizeAuthorization response. True if the authorization is considered successful.
Return values
NRF_ERROR_NULLIf bms was NULL.
NRF_ERROR_INVALID_STATEIf no authorization request was pending.
NRF_SUCCESSIf the response was received successfully.