From ba4308344b8b665861a3d293288418ea9a0132e4 Mon Sep 17 00:00:00 2001 From: Kimmo Vaisanen Date: Tue, 17 Sep 2019 15:52:14 +0300 Subject: [PATCH] Cellular: Fix stop tag for Quectel M26 send command Possible responses for send command are SEND OK, SEND FAIL or ERROR so normal OK response check does not work properly. --- .../framework/targets/QUECTEL/M26/QUECTEL_M26_CellularStack.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/features/cellular/framework/targets/QUECTEL/M26/QUECTEL_M26_CellularStack.cpp b/features/cellular/framework/targets/QUECTEL/M26/QUECTEL_M26_CellularStack.cpp index 0c09c537e6..d02118b321 100644 --- a/features/cellular/framework/targets/QUECTEL/M26/QUECTEL_M26_CellularStack.cpp +++ b/features/cellular/framework/targets/QUECTEL/M26/QUECTEL_M26_CellularStack.cpp @@ -439,6 +439,7 @@ nsapi_size_or_error_t QUECTEL_M26_CellularStack::socket_sendto_impl(CellularSock _at.resp_start(">"); _at.write_bytes((uint8_t *)data, sent_len); _at.resp_start(); + _at.set_stop_tag("\r\n"); _at.resp_stop(); if (_at.get_last_error() != NSAPI_ERROR_OK) {