StdPJ/Core/Src/APP/BSP/ug96/ug96.c
/**
  * @brief  Get Signal Quality value
  * @param  Obj: pointer to module handle
  * @retval Operation status.
  */
@brief  Get Signal Quality value
@param  Obj: pointer to module handle
@retval Operation status.
@brief Get Signal Quality value @param Obj : pointer to module handle @retval Operation status .
UG96_Return_t  UG96_GetSignalQualityStatus(Ug96Object_t *Obj, int32_t *Qvalue)
{
  UG96_Return_t ret = UG96_RETURN_ERROR;
  uint8_t parse_count;
  char *align_ptr;
  ret = (UG96_Return_t) AT_ExecuteCommand(Obj, UG96_TOUT_300, (uint8_t *)"AT+CSQ\r\n", RET_OK | RET_ERROR | RET_CME_ERROR);
  if (RET_OK == ret)
  {
    align_ptr = strstr((char *) Obj->CmdResp,"+CSQ:") + sizeof("+CSQ:");
    *Qvalue = ParseNumber(align_ptr, &parse_count);
  }
  return ret;
}
UG96_Return_t UG96_GetSignalQualityStatus ( Ug96Object_t * Obj , int32_t * Qvalue ) { UG96_Return_t ret = UG96_RETURN_ERROR ; uint8_t parse_count ; char * align_ptr ; ret = ( UG96_Return_t ) AT_ExecuteCommand ( Obj , UG96_TOUT_300 , ( uint8_t * ) " \r \n " , RET_OK | RET_ERROR | RET_CME_ERROR ) ; if ( RET_OK == ret ) { align_ptr = strstr ( ( char * ) Obj -> CmdResp , " " ) + sizeof ( " " ) ; * Qvalue = ParseNumber ( align_ptr , & parse_count ) ; } return ret ; }
@brief  Get Signal Quality value
 @param  Obj: pointer to module handle
 @retval Operation status.
@brief Get Signal Quality value @param Obj : pointer to module handle @retval Operation status .