BLE_GAP_SetDeviceAddr
C
uint16_t BLE_GAP_SetDeviceAddr(BLE_GAP_Addr_T *p_addr);Description
Sets the Bluetooth device address (identity address).
Note
The address type must be either BLE_GAP_ADDR_TYPE_PUBLIC or BLE_GAP_ADDR_TYPE_RANDOM_STATIC. The address identifies the device to other Bluetooth devices. The default IRK (Identity Resolving Key) is automatically changed if the Bluetooth device address is updated.
Parameters
| Parameter | Description |
|---|---|
| [in] p_addr | Pointer to the device address buffer. |
Return values
| Return value | Description |
|---|---|
| MBA_RES_SUCCESS | Successfully sets the device address. |
| MBA_RES_FAIL | Failed to set device address due to invalid address type or other conditions. |
| MBA_RES_OOM | Internal memory allocation failure occurred. |
