StdPJ/Core/Src/APP/BSP/ug96/ug96.c
/**
  * @brief  Get the list of Network Operator available in the area
  * @param  Obj: pointer to module handle
  * @param  Operator: pointer to a string
  * @retval Operation Status.
  */
@brief  Get the list of Network Operator available in the area
@param  Obj: pointer to module handle
@param  Operator: pointer to a string
@retval Operation Status.
@brief Get the list of Network Operator available in the area @param Obj : pointer to module handle @param Operator : pointer to a string @retval Operation Status .
UG96_Return_t  UG96_ListOperators(Ug96Object_t *Obj, char *Operators)
{
  UG96_Return_t ret = UG96_RETURN_ERROR;
  char *align_ptr;
  ret = (UG96_Return_t) AT_ExecuteCommand(Obj, UG96_TOUT_180000, (uint8_t *)"AT+COPS=?\r\n", RET_OK | RET_ERROR | RET_CME_ERROR);
  if (RET_OK == ret)
  {
    align_ptr = strstr((char *) Obj->CmdResp,"+COPS:") + sizeof("+COPS:");
    strncpy((char *)Operators,  align_ptr, 100);
  }
  return ret;
}
UG96_Return_t UG96_ListOperators ( Ug96Object_t * Obj , char * Operators ) { UG96_Return_t ret = UG96_RETURN_ERROR ; char * align_ptr ; ret = ( UG96_Return_t ) AT_ExecuteCommand ( Obj , UG96_TOUT_180000 , ( uint8_t * ) " \r \n " , RET_OK | RET_ERROR | RET_CME_ERROR ) ; if ( RET_OK == ret ) { align_ptr = strstr ( ( char * ) Obj -> CmdResp , " " ) + sizeof ( " " ) ; strncpy ( ( char * ) Operators , align_ptr , 100 ) ; } return ret ; }
@brief  Get the list of Network Operator available in the area
 @param  Obj: pointer to module handle
 @param  Operator: pointer to a string
 @retval Operation Status.
@brief Get the list of Network Operator available in the area @param Obj : pointer to module handle @param Operator : pointer to a string @retval Operation Status .