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

◆ bt_rpc_gatt_subscribe_flag_set()

int bt_rpc_gatt_subscribe_flag_set ( struct bt_gatt_subscribe_params *  params,
uint32_t  flags_bit 
)

#include <include/bluetooth/bt_rpc.h>

Set flag in the flags field of the bt_gatt_subscribe_params structure.

This function must be used instead of atomic_set_bit() if you are using BLE API over RPC.

Parameters
paramsSubscribe parameters.
flags_bitIndex of bit to set.
Returns
Previous flag value (retrieved non-atomically) in case of success or negative value in case of error.