Skip to content

Commit be95f47

Browse files
author
Mirela Chirica
committed
Quectel BC95 echo test fixes
Fixing get host by name and iterate send/recv socket operations.
1 parent 84cd5c1 commit be95f47

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

features/cellular/framework/targets/QUECTEL/BC95/QUECTEL_BC95_CellularStack.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,8 @@ nsapi_size_or_error_t QUECTEL_BC95_CellularStack::socket_sendto_impl(CellularSoc
150150
_at.write_string(hexstr, false);
151151
_at.cmd_stop();
152152
_at.resp_start();
153-
socket->id = _at.read_int();
153+
// skip socket id
154+
_at.skip_param();
154155
sent_len = _at.read_int();
155156
_at.resp_stop();
156157

@@ -182,6 +183,7 @@ nsapi_size_or_error_t QUECTEL_BC95_CellularStack::socket_recvfrom_impl(CellularS
182183
_at.read_string(hexstr, sizeof(hexstr));
183184
// remaining length
184185
_at.skip_param();
186+
_at.resp_stop();
185187

186188
if (!recv_len || (recv_len == -1) || (_at.get_last_error() != NSAPI_ERROR_OK)) {
187189
return NSAPI_ERROR_WOULD_BLOCK;

0 commit comments

Comments
 (0)