modify for blynk

Fork of WIZnetInterface by WIZnet

Revision:
26:d07c80e18b27
Parent:
24:06e3836a627b
Child:
27:1169973d836c
--- a/EthernetInterface.cpp	Mon Jun 29 07:27:34 2015 +0000
+++ b/EthernetInterface.cpp	Mon Oct 05 05:41:00 2015 +0000
@@ -19,7 +19,7 @@
 #include "EthernetInterface.h"
 #include "DHCPClient.h"
 
-#if not defined(TARGET_WIZwiki_W7500)
+#if (not defined TARGET_WIZwiki_W7500) && (not defined TARGET_WIZwiki_W7500P)
 EthernetInterface::EthernetInterface(PinName mosi, PinName miso, PinName sclk, PinName cs, PinName reset) :
         WIZnet_Chip(mosi, miso, sclk, cs, reset)
 {
@@ -56,6 +56,10 @@
     this->netmask = str_to_ip(mask);
     this->gateway = str_to_ip(gateway);
     reset();
+
+    // @Jul. 8. 2014 add code. should be called to write chip.
+    setmac();
+    setip();
     
     return 0;
 }