-

Dependencies:   EthernetInterfaceWithHostname HygroClip2-LPC mbed-rtos mbed

Fork of TCPSocket_HelloWorld by mbed official

Revision:
21:b3676a4fcf2b
Parent:
20:526d6c8c2c8d
--- a/main.cpp	Wed May 11 09:23:19 2016 +0000
+++ b/main.cpp	Wed May 11 09:25:37 2016 +0000
@@ -36,6 +36,7 @@
                 int lenght = snprintf(transmissionBuffer, bufferLenght, "GET /relay?temperature=%.2f&humidity=%.2f&dewpoint=%.2f&id=1 HTTP/1.0\n\n", data->temperature, data->humidity,data->dewpoint);
                 printf(transmissionBuffer);
                 sock.send_all(transmissionBuffer, lenght);
+                wait(0.2f); // To avoid a pipeline rupture
             }
             else
             {