Fork of MQTT library

Dependencies:   FP

Dependents:   WNCProximityMqtt

Revision:
47:21d6fba046df
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MQTTWNCInterface.h	Wed Sep 14 16:35:32 2016 +0000
@@ -0,0 +1,35 @@
+
+#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