An API for using MQTT over multiple transports
Dependencies: FP MQTTPacket
Dependents: Cellular_HelloMQTT IoTStarterKit GSwifiInterface_HelloMQTT IBMIoTClientEthernetExample ... more
This library is part of the EclipseTM Paho project; specifically the embedded client.
The goals of this API are:
- to be independent of any system library: hence templates parameters for networking, timer and threading classes
- not to rely on heap storage, only automatic (I think this is a good thing)
- to limit memory use, for instance by defining the size of the buffers and arrays used at object creation time
Diff: linux_main.cpp
- Revision:
- 8:c46930bd6c82
- Parent:
- 7:f9d690fb6dad
--- 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