The MQTTEthernet.h and MQTTSocket.h file is changed for W7500.

Dependencies:   FP MQTTPacket

Dependents:   w7500-paho-mqtt w7500-RFID-mqtt w7500-mqtt-wizfi310 w7500-mqtt-wizfi310_tested

Fork of MQTT by Bohyun Bang

Revision:
45:b7cebc104c6c
Parent:
43:21da1f744243
Child:
46:88f62eb29442
--- a/MQTTEthernet.h	Mon Oct 06 11:41:05 2014 +0000
+++ b/MQTTEthernet.h	Sun Jun 28 22:44:19 2015 +0000
@@ -6,12 +6,20 @@
 #include "EthernetInterface.h"
 #include "MQTTSocket.h"
 
+
+uint8_t mac_addr[6] = {0x00, 0x08, 0xDC, 0x1E, 0x72, 0x1B};
+const char * ip_addr = "222.98.173.249";
+const char * gw_addr = "222.98.173.254";
+const char * snmask = "255.255.255.192";
+
 class MQTTEthernet : public MQTTSocket
 {
 public:    
     MQTTEthernet()
     {
-        eth.init();                          // Use DHCP
+        wait(1);
+        this->createSocket();
+        eth.init(mac_addr,ip_addr,snmask,gw_addr);                          // Use DHCP
         eth.connect();
     }