-

Dependencies:   EthernetInterfaceWithHostname HygroClip2-LPC mbed-rtos mbed

Fork of TCPSocket_HelloWorld by mbed official

Files at this revision

API Documentation at this revision

Comitter:
wolfsberger
Date:
Wed May 11 09:25:37 2016 +0000
Parent:
20:526d6c8c2c8d
Commit message:
Fixed the pipeline rupture

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 526d6c8c2c8d -r b3676a4fcf2b main.cpp
--- 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
             {