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.
Fork of MQTT by
Diff: linux_main.cpp
- Revision:
- 8:c46930bd6c82
- Parent:
- 7:f9d690fb6dad
diff -r f9d690fb6dad -r c46930bd6c82 linux_main.cpp
--- a/linux_main.cpp Wed Apr 09 11:37:28 2014 +0100
+++ b/linux_main.cpp Wed Apr 09 13:48:20 2014 +0000
@@ -1,3 +1,5 @@
+
+#if defined(LINUX)
#include <sys/types.h>
#include <sys/socket.h>
@@ -230,3 +232,5 @@
rc = client.subscribe("topic", MQTT::QOS2, messageArrivedPointer);
sleep(1);
}
+
+#endif
\ No newline at end of file
