/* Get Remote Device Address. 
This API is used to get the address of the remote device currently connected with the handle specified in nConnHandle. */
ADI_BLER_RESULT adi_radio_GetConnectionAddr(const uint16_t nConnHandle, uint8_t *const pBleAddr)
/* Get Remote Device Address. 
This API is used to get the address of the remote device currently connected with the handle specified in nConnHandle. */
ADI_BLER_RESULT adi_radio_GetConnectionAddr(const uint16_t nConnHandle, uint8_t *const pBleAddr)
{
    ADI_BLER_RESULT bleResult;
    ASSERT(pBleAddr != NULL);
    ADI_BLE_LOGEVENT(LOGID_CMD_BLEGAP_GET_BD_ADDR);
    ADI_BLE_RADIO_CMD_START(CMD_BLEGAP_GET_BD_ADDR);
    memcpy(&pBLERadio->cmdPkt[ADI_RADIO_CMD_HEADER_LEN], &nConnHandle, 2u);
    bleResult = bler_process_cmd(CMD_BLEGAP_GET_BD_ADDR, 2u, pBleAddr, 6u);
    if(bleResult == ADI_BLER_SUCCESS){
    	bleResult = ADI_BLE_WAIT_FOR_COMPLETION(ADI_EVENT_FLAG_RESP_SUCCESS,ADI_BLER_CMD_TIMEOUT);
    }
    ADI_BLE_RADIO_CMD_END();
    return (bleResult);
}