Fork of MQTT library
MQTTWNCInterface.h
- Committer:
- elmkom
- Date:
- 2016-09-27
- Revision:
- 48:326380990a95
- Parent:
- 47:21d6fba046df
File content as of revision 48:326380990a95:
#if !defined(MQTT_WNCInterface_H) #define MQTT_WNCInterface_H #include "MQTTmbed.h" #include "WNCInterface.h" #include "MQTTSocket.h" class MQTTwnc : public MQTTSocket { public: MQTTwnc() { eth.init(); // Use DHCP eth.connect(); } WNCInterface& getEth() { return eth; } void reconnect() { eth.connect(); // nothing I've tried actually works to reconnect } private: WNCInterface eth; }; #endif