Skip to content

Commit c217a52

Browse files
author
Mirela Chirica
committed
Cellular: Handle AT response stop in case IP address is missing from CGPADDR response
1 parent 273a052 commit c217a52

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

features/cellular/framework/AT/AT_CellularStack.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ const char *AT_CellularStack::get_ip_address()
6161
int len = _at.read_string(_ip, NSAPI_IPv4_SIZE - 1);
6262
if (len == -1) {
6363
_ip[0] = '\0';
64+
_at.resp_stop();
6465
_at.unlock();
6566
// no IPV4 address, return
6667
return NULL;

0 commit comments

Comments
 (0)