Skip to content

Commit 255e2e5

Browse files
committed
Correction in AT Command
1 parent 4a37b13 commit 255e2e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

features/cellular/framework/targets/UBLOX/AT/UBLOX_AT_CellularContext.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ bool UBLOX_AT_CellularContext::activate_profile(const char *apn,
182182
for (int protocol = nsapi_security_to_modem_security(NSAPI_SECURITY_NONE);
183183
success && (protocol <= nsapi_security_to_modem_security(NSAPI_SECURITY_CHAP)); protocol++) {
184184
if ((_auth == NSAPI_SECURITY_UNKNOWN) || (nsapi_security_to_modem_security(_auth) == protocol)) {
185-
_at.cmd_start("AT+UPSD=0,6,");
185+
_at.cmd_start("AT+UPSD=" PROFILE ",6,");
186186
_at.write_int(protocol);
187187
_at.cmd_stop();
188188
_at.resp_start();
@@ -191,7 +191,7 @@ bool UBLOX_AT_CellularContext::activate_profile(const char *apn,
191191
if (_at.get_last_error() == NSAPI_ERROR_OK) {
192192
// Activate, wait upto 30 seconds for the connection to be made
193193
_at.set_at_timeout(30000);
194-
_at.cmd_start("AT+UPSD=" PROFILE ",6,");
194+
_at.cmd_start("AT+UPSDA=" PROFILE ",3");
195195
_at.cmd_stop();
196196
_at.resp_start();
197197
_at.resp_stop();

0 commit comments

Comments
 (0)