ble_hs_id_gen_rnd

int
ble_hs_id_gen_rnd(
           int  nrpa,
    ble_addr_t *out_addr
)

Description

Generates a new random address. This function does not configure the device with the new address; the caller can use the address in subsequent operations.

Parameters

ParameterDescription
nrpaThe type of random address to generate: 0: static 1: non-resolvable private
out_addrOn success, the generated address gets written here.

Returned values

ValueCondition
0Success.
Core return codeUnexpected error.