StdPJ/Core/Src/APP/BSP/ug96/ug96.c
/**
  * @brief  Force registration to specific Network Operator (by operator code).
  * @param  Obj: pointer to module handle
  * @param  OperatorCode: http://www.imei.info/operator-codes/
  * @retval Operation Status.
  */
@brief  Force registration to specific Network Operator (by operator code).
@brief Force registration to specific Network Operator ( by operator code ) .
UG96_Return_t  UG96_ForceOperator(Ug96Object_t *Obj, int32_t OperatorCode)
{
  UG96_Return_t ret = UG96_RETURN_ERROR;
  snprintf(CmdString, 24,"AT+COPS=1,2,\"%ld\"\r\n", OperatorCode);
  ret = (UG96_Return_t) AT_ExecuteCommand(Obj, UG96_TOUT_180000, (uint8_t *)CmdString, RET_OK | RET_ERROR | RET_CME_ERROR);
  return ret;
}
UG96_Return_t UG96_ForceOperator ( Ug96Object_t * Obj , int32_t OperatorCode ) { UG96_Return_t ret = UG96_RETURN_ERROR ; snprintf ( CmdString , 24 , " \" \" \r \n " , OperatorCode ) ; ret = ( UG96_Return_t ) AT_ExecuteCommand ( Obj , UG96_TOUT_180000 , ( uint8_t * ) CmdString , RET_OK | RET_ERROR | RET_CME_ERROR ) ; return ret ; }
@brief  Force registration to specific Network Operator (by operator code).
@brief Force registration to specific Network Operator ( by operator code ) .