mirror of https://github.com/ARMmbed/mbed-os.git
Cellular: Fix Gemalto driver to handle remote peer closed
parent
89b66465c2
commit
31bd1a795b
|
@ -55,6 +55,17 @@ void GEMALTO_CINTERION_CellularStack::urc_sis()
|
|||
sock->_cb(sock->_data);
|
||||
}
|
||||
}
|
||||
if (urc_code == 0) {
|
||||
int urc_info_id = _at.read_int();
|
||||
if (urc_info_id == 48) {
|
||||
tr_info("Socket closed %d", sock_id);
|
||||
sock->closed = true;
|
||||
if (sock->_cb) {
|
||||
sock->_cb(sock->_data);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue