An API for using MQTT over multiple transports for mbed OS 5
Fork of MQTT by
MQTTEthernet.h
- Committer:
- JPlenert
- Date:
- 2017-01-30
- Revision:
- 47:a38f394916ff
- Parent:
- 43:21da1f744243
File content as of revision 47:a38f394916ff:
#if !defined(MQTTETHERNET_H) #define MQTTETHERNET_H #include "MQTTmbed.h" #include "EthernetInterface.h" #include "MQTTSocket.h" class MQTTEthernet : public MQTTSocket { public: MQTTEthernet(EthernetInterface ði) : eth(ethi), MQTTSocket(ethi) { } EthernetInterface& getEth() { return eth; } void reconnect() { eth.connect(); // nothing I've tried actually works to reconnect } private: EthernetInterface ð }; #endif