Skip to content

Commit 31bd1a7

Browse files
author
Ari Parkkila
committed
Cellular: Fix Gemalto driver to handle remote peer closed
1 parent 89b6646 commit 31bd1a7

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

features/cellular/framework/targets/GEMALTO/CINTERION/GEMALTO_CINTERION_CellularStack.cpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,17 @@ void GEMALTO_CINTERION_CellularStack::urc_sis()
5555
sock->_cb(sock->_data);
5656
}
5757
}
58+
if (urc_code == 0) {
59+
int urc_info_id = _at.read_int();
60+
if (urc_info_id == 48) {
61+
tr_info("Socket closed %d", sock_id);
62+
sock->closed = true;
63+
if (sock->_cb) {
64+
sock->_cb(sock->_data);
65+
}
66+
67+
}
68+
}
5869
}
5970
}
6071

0 commit comments

Comments
 (0)