Bohyun Bang / WIZnetInterface

Dependents:   w7500-paho-mqtt openHAB_mqtt_W7500 kakaoIoTchatbot w7500-RFID-mqtt

Fork of WIZnetInterface by WIZnet

Files at this revision

API Documentation at this revision

Comitter:
kaizen
Date:
Wed Jul 22 02:11:37 2015 +0000
Parent:
19:d8773cd4edc5
Child:
21:3b64df29662f
Commit message:
Added init() function. This function is necessary when you want to HTTPServer library which release by mbed.; ; init() function is same with init(uint8_t *mac) function.

Changed in this revision

EthernetInterface.cpp Show annotated file Show diff for this revision Revisions of this file
EthernetInterface.h Show annotated file Show diff for this revision Revisions of this file
--- a/EthernetInterface.cpp	Wed Jul 01 04:02:50 2015 +0000
+++ b/EthernetInterface.cpp	Wed Jul 22 02:11:37 2015 +0000
@@ -33,6 +33,14 @@
 }
 #endif
 
+int EthernetInterface::init()
+{
+    dhcp = true;
+    reset();
+	
+    return 0;
+}
+
 int EthernetInterface::init(uint8_t * mac)
 {
     dhcp = true;
--- a/EthernetInterface.h	Wed Jul 01 04:02:50 2015 +0000
+++ b/EthernetInterface.h	Wed Jul 22 02:11:37 2015 +0000
@@ -42,6 +42,7 @@
   * Initialize the interface and configure it to use DHCP (no connection at this point).
   * \return 0 on success, a negative number on failure
   */
+  int init();              //With DHCP
   int init(uint8_t * mac); //With DHCP
 
   /** Initialize the interface with a static IP address.