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: MQTTEthernet.h
- Revision:
- 41:b7e86fa6dbb8
- Parent:
- 31:a51dd239b78e
- Child:
- 43:21da1f744243
--- a/MQTTEthernet.h Fri Aug 01 23:44:12 2014 +0000 +++ b/MQTTEthernet.h Fri Aug 15 10:23:56 2014 +0000 @@ -15,6 +15,16 @@ eth.connect(); } + EthernetInterface& getEth() + { + return eth; + } + + void reconnect() + { + eth.connect(); // nothing I've tried actually works to reconnect + } + private: EthernetInterface eth;