fork of wolfSSL/MQTTS library with increased message buffer & increased number of subscribed topics
Fork of MQTTS by
MQTTEthernet.h
- Committer:
- tatulea
- Date:
- 2015-11-16
- Revision:
- 47:8a72071f259c
- Parent:
- 43:21da1f744243
File content as of revision 47:8a72071f259c:
#if !defined(MQTTETHERNET_H) #define MQTTETHERNET_H #include "MQTTmbed.h" #include "EthernetInterface.h" #include "MQTTSocket.h" class MQTTEthernet : public MQTTSocket { public: MQTTEthernet() { eth.init(); // Use DHCP eth.connect(); } EthernetInterface& getEth() { return eth; } void reconnect() { eth.connect(); // nothing I've tried actually works to reconnect } private: EthernetInterface eth; }; #endif