diff --git a/src/NBClient.cpp b/src/NBClient.cpp index 14cdeaf..b7661d1 100644 --- a/src/NBClient.cpp +++ b/src/NBClient.cpp @@ -300,7 +300,9 @@ size_t NBClient::write(const uint8_t* buf, size_t size) command += _socket; command += ","; command += chunkSize; - command += ",\""; + MODEM.send(command); + delay(60); + command = ""; for (size_t i = 0; i < chunkSize; i++) { byte b = buf[i + written]; @@ -312,8 +314,6 @@ size_t NBClient::write(const uint8_t* buf, size_t size) command += (char)(n2 > 9 ? 'A' + n2 - 10 : '0' + n2); } - command += "\""; - MODEM.send(command); if (_writeSync) { String response; @@ -455,4 +455,4 @@ void NBClient::handleUrc(const String& urc) } } } -} \ No newline at end of file +}