Simplify using of UnbufferedSerial(Serial), USBCDC, TCP, SMTP, NTP Fork : https://github.com/YSI-LPS/lib_Transmission

Dependents:   lib_Transmission_Serial_example 2022_TICE_Electrolyse lib_Transmission_TCP_example

Revision:
23:457f1242007d
Parent:
22:e99892e6fd8d
Child:
25:01db56f04262
--- a/lib_Transmission.cpp	Tue Jun 29 13:01:17 2021 +0000
+++ b/lib_Transmission.cpp	Tue Jun 29 14:47:11 2021 +0000
@@ -265,7 +265,7 @@
         char buffer[TRANSMISSION_DEFAULT_BUFFER_SIZE] = {0};
         nsapi_error_t ack = 0, size = 0;
         do{
-            ack = _clientTCP->recv(&buffer[0], TRANSMISSION_DEFAULT_BUFFER_SIZE-size);
+            ack = _clientTCP->recv(&buffer[size], TRANSMISSION_DEFAULT_BUFFER_SIZE-size);
             if(ack > NSAPI_ERROR_OK) size += ack;
         }while((ack == 536) && (size < TRANSMISSION_DEFAULT_BUFFER_SIZE));
         if(ack < NSAPI_ERROR_WOULD_BLOCK) eth_error("clientTCP_recv", ack);