StdPJ/Core/Src/APP/BSP/ug96/ug96.c
/**
  * @brief  Execute AT command with data.
  * @param  Obj: pointer to module handle
  * @param  pdata: pointer to returned data
  * @param  len: binary data length
  * @param  timeout: waiting that the modem confirms confirm that send command has been executed (SEND OK)
  * @retval Operation Status.
  */
@brief  Execute AT command with data.
@brief Execute AT command with data .
static UG96_SendRet_t  AT_RequestSendData(Ug96Object_t *Obj, uint8_t *pdata, uint16_t len, uint32_t timeout)
{
  int32_t confirm;
  if(Obj->fops.IO_Send(pdata, len) >= 0)
  {
      confirm = AT_RetrieveData(Obj, Obj->CmdResp, 0, (RET_SENT | RET_BUF_FULL | RET_ERROR), timeout);
      return (UG96_SendRet_t) confirm;
  }
  return UG96_SEND_RET_UART_FAIL; 
}
static UG96_SendRet_t AT_RequestSendData ( Ug96Object_t * Obj , uint8_t * pdata , uint16_t len , uint32_t timeout ) { int32_t confirm ; if ( Obj -> fops . IO_Send ( pdata , len ) >= 0 ) { confirm = AT_RetrieveData ( Obj , Obj -> CmdResp , 0 , ( RET_SENT | RET_BUF_FULL | RET_ERROR ) , timeout ) ; return ( UG96_SendRet_t ) confirm ; } return UG96_SEND_RET_UART_FAIL ; }
@brief  Execute AT command with data.
@brief Execute AT command with data .
/* UART error to transmit */