1.2.2.1.1.4.43 BLE_GAP_SetDeviceAddr
C
uint16_t BLE_GAP_SetDeviceAddr(BLE_GAP_Addr_T *p_addr);
Description
Set the Bluetooth device address (identity address). Type of address must be BLE_GAP_ADDR_TYPE_PUBLIC or BLE_GAP_ADDR_TYPE_RANDOM_STATIC. The address identifies the device to other Bluetooth devices.
Parameters
Parameter | Description |
---|---|
[in] p_addr | Pointer to the device address buffer. |
Return values
Return value | Description |
---|---|
MBA_RES_SUCCESS | Successfully set the device address. |
MBA_RES_FAIL | Fail to set device addr. Some types of address can be set by application. |
MBA_RES_OOM | Internal memory allocation failure. |