Skip to content

Commit a5a9683

Browse files
committed
Change AT+COPS mode to manual first then fall back to auto to improve reliability. Fix a syntax error when RAT is set
1 parent 9e17653 commit a5a9683

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

features/cellular/framework/AT/AT_CellularNetwork.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ nsapi_error_t AT_CellularNetwork::set_registration(const char *plmn)
222222
} else {
223223
tr_debug("Manual network registration to %s", plmn);
224224
if (_op_act != RAT_UNKNOWN) {
225-
return _at.at_cmd_discard("+COPS", "=1,2,", "%s%d", plmn, _op_act);
225+
return _at.at_cmd_discard("+COPS", "=4,2,", "%s%d", plmn, _op_act);
226226
} else {
227227
return _at.at_cmd_discard("+COPS", "=1,2,", "%s", plmn);
228228
}

0 commit comments

Comments
 (0)