Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: EthernetInterfaceWithHostname HygroClip2-LPC mbed-rtos mbed
Fork of TCPSocket_HelloWorld by
Revision 21:b3676a4fcf2b, committed 2016-05-11
- 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 |
--- 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
{
