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
MQTTEthernet.h
- Committer:
- Ian Craggs
- Date:
- 2017-11-02
- Revision:
- 59:9cff7b6bbd01
- Parent:
- 54:ff9e5c4b52d0
File content as of revision 59:9cff7b6bbd01:
#if !defined(MQTTETHERNET_H)
#define MQTTETHERNET_H
#include "MQTTmbed.h"
#include "EthernetInterface.h"
#include "MQTTSocket.h"
class MQTTEthernet : public MQTTSocket
{
public:
MQTTEthernet() : MQTTSocket(ð)
{
eth.connect();
}
EthernetInterface& getEth()
{
return eth;
}
private:
EthernetInterface eth;
};
#endif