mirror of https://github.com/ARMmbed/mbed-os.git
Cellular: Handle AT response stop in case IP address is missing from CGPADDR response
parent
273a052e89
commit
c217a521f4
|
@ -61,6 +61,7 @@ const char *AT_CellularStack::get_ip_address()
|
||||||
int len = _at.read_string(_ip, NSAPI_IPv4_SIZE - 1);
|
int len = _at.read_string(_ip, NSAPI_IPv4_SIZE - 1);
|
||||||
if (len == -1) {
|
if (len == -1) {
|
||||||
_ip[0] = '\0';
|
_ip[0] = '\0';
|
||||||
|
_at.resp_stop();
|
||||||
_at.unlock();
|
_at.unlock();
|
||||||
// no IPV4 address, return
|
// no IPV4 address, return
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Loading…
Reference in New Issue