Skip to content

Commit 7b8a137

Browse files
author
Cruz Monrreal
authored
Merge pull request #7740 from mirelachirica/missing_resp_stop
Cellular: Handle AT response stop in case IP address is missing from …
2 parents 4ce0d90 + c217a52 commit 7b8a137

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)