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: MQTTClient.h
- Revision:
- 13:fd82db992024
- Parent:
- 12:cc7f2d62a393
- Parent:
- 11:db15da110a37
- Child:
- 15:64a57183aa03
--- a/MQTTClient.h Fri Apr 11 22:31:55 2014 +0100 +++ b/MQTTClient.h Fri Apr 11 22:46:37 2014 +0100 @@ -128,7 +128,7 @@ template<class Network, class Timer, class Thread> void MQTT::Client<Network, Timer, Thread>::threadfn(void* arg) { ((Client<Network, Timer, Thread>*) arg)->run(NULL); -} +} template<class Network, class Timer, class Thread> MQTT::Client<Network, Timer, Thread>::Client(Network* network, const int MAX_MQTT_PACKET_SIZE, const int command_timeout) : packetid()