/* Get Connection Handle. 
This API is used to get the handle of the connection currently active with the remote device specified in pBleAddr. */
ADI_BLER_RESULT adi_radio_GetConnectionHandle(uint8_t *const pBleAddr, uint16_t *const pConnHandle)
/* Get Connection Handle. 
This API is used to get the handle of the connection currently active with the remote device specified in pBleAddr. */
ADI_BLER_RESULT adi_radio_GetConnectionHandle(uint8_t *const pBleAddr, uint16_t *const pConnHandle)
{
    ADI_BLER_RESULT bleResult;
    ASSERT(pBleAddr != NULL);
    ASSERT(pConnHandle != NULL);
    ADI_BLE_LOGEVENT(LOGID_CMD_BLEGAP_GET_CONNECTION_HANDLE);
    ADI_BLE_RADIO_CMD_START(CMD_BLEGAP_GET_CONNECTION_HANDLE);
    memcpy(&pBLERadio->cmdPkt[ADI_RADIO_CMD_HEADER_LEN], pBleAddr, 6u);
    bleResult = bler_process_cmd(CMD_BLEGAP_GET_CONNECTION_HANDLE, 6u, pConnHandle, 2u);
    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);
}