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

◆ ble_qwr_attr_register()

uint32_t ble_qwr_attr_register ( struct ble_qwr * qwr,
uint16_t attr_handle )

#include <ble_qwr.h>

Function for registering an attribute with the Queued Writes module.

Call this function for each attribute that you want to enable for Queued Writes (thus a series of prepare write and execute write operations).

Parameters
[in]qwrQueued Writes structure.
[in]attr_handleHandle of the attribute to register.
Return values
NRF_SUCCESSIf the registration was successful.
NRF_ERROR_NO_MEMIf no more memory is available to add this registration.
NRF_ERROR_NULLIf qwr is NULL.
NRF_ERROR_INVALID_STATEIf the given qwr instance has not been initialized.