my fork for nimqtt

Dependencies:   Socket lwip-eth lwip-sys lwip

Fork of EthernetInterface by Guilhem Saurel

Revision:
15:fd9597f1b81b
Parent:
14:cec293071eed
Child:
21:8cd2de462559
diff -r cec293071eed -r fd9597f1b81b EthernetInterface.cpp
--- a/EthernetInterface.cpp	Mon Jul 23 11:53:01 2012 +0000
+++ b/EthernetInterface.cpp	Wed Jul 25 15:00:12 2012 +0000
@@ -59,7 +59,7 @@
 int EthernetInterface::init() {
     use_dhcp = true;
     init_netif(NULL, NULL, NULL);
-    return OK;
+    return 0;
 }
 
 int EthernetInterface::init(const char* ip, const char* mask, const char* gateway) {
@@ -69,7 +69,7 @@
     inet_aton(mask, &mask_n);
     inet_aton(gateway, &gateway_n);
     init_netif(&ip_n, &mask_n, &gateway_n);
-    return OK;
+    return 0;
 }
 
 int EthernetInterface::connect() {
@@ -84,7 +84,7 @@
     
     netif_inited.wait();
     
-    return OK;
+    return 0;
 }
 
 int EthernetInterface::disconnect() {
@@ -97,7 +97,7 @@
     
     NVIC_DisableIRQ(ENET_IRQn);
     
-    return OK;
+    return 0;
 }
 
 char* EthernetInterface::getIPAddress() {