Skip to content

Commit ba43083

Browse files
author
Kimmo Vaisanen
committed
Cellular: Fix stop tag for Quectel M26 send command
Possible responses for send command are SEND OK<cr><ln>, SEND FAIL<cr><ln> or ERROR<cr><ln> so normal OK<cr><ln> response check does not work properly.
1 parent ffbd92c commit ba43083

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

features/cellular/framework/targets/QUECTEL/M26/QUECTEL_M26_CellularStack.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,7 @@ nsapi_size_or_error_t QUECTEL_M26_CellularStack::socket_sendto_impl(CellularSock
439439
_at.resp_start(">");
440440
_at.write_bytes((uint8_t *)data, sent_len);
441441
_at.resp_start();
442+
_at.set_stop_tag("\r\n");
442443
_at.resp_stop();
443444

444445
if (_at.get_last_error() != NSAPI_ERROR_OK) {

0 commit comments

Comments
 (0)