AtGsmCommon/AtCommandsSrc/AtGsmOperatorSelection.c

18 lines
491 B
C
Executable File

//
// Created by xemon on 14.12.22.
//
#include "AtGsmOperatorSelection.h"
#include "AtCmdCommonProtected.h"
AtCommandResult AtGsm_OperatorSelectionAutomatic(tAtCmd *env) {
AtCmdPrepare(env);
AtCmdSendStatic(env, "AT+COPS=0\r\n");
return AtCmdOkErrAnswer(env, 10 * env->stdRxTimeout);
}
AtCommandResult AtGsm_OperatorSelectionDeregister(tAtCmd *env) {
AtCmdPrepare(env);
AtCmdSendStatic(env, "AT+COPS=2\r\n");
return AtCmdOkErrAnswer(env, 1 * env->stdRxTimeout);
}