An API for using MQTT over multiple transports
Dependents: Water_Monitor_clone_v1 Cloud_IBM_MbedOS ble-star-mbed
Fork of MQTT by
MQTTEthernet.h
- Committer:
- icraggs
- Date:
- 2017-09-30
- Revision:
- 54:ff9e5c4b52d0
- Parent:
- 43:21da1f744243
File content as of revision 54:ff9e5c4b52d0:
#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
