int ble_hs_id_gen_rnd( int nrpa, ble_addr_t *out_addr )
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.
Parameter | Description |
---|---|
nrpa | The type of random address to generate: 0: static 1: non-resolvable private |
out_addr | On success, the generated address gets written here. |
Value | Condition |
---|---|
0 | Success. |
Core return code | Unexpected error. |