mbed IP library over Ethernet with setName and setNewAddress

Dependencies:   Socket lwip-eth lwip-sys lwip

Dependents:   JRO_CR2 JRO_DDSv2 JRO_DDSv2_rev2019

Fork of EthernetInterface by mbed official

Files at this revision

API Documentation at this revision

Comitter:
miguelcordero191
Date:
Mon Feb 23 20:36:52 2015 +0000
Parent:
47:3b0a475eb1ad
Commit message:
Any change was done;

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	Thu Feb 05 19:02:23 2015 +0000
+++ b/EthernetInterface.cpp	Mon Feb 23 20:36:52 2015 +0000
@@ -126,7 +126,7 @@
 }
 
 int EthernetInterface::setName(const char * myname) {
-    int i;
+    //int i;
     
     strncpy(myName, myname, 32);
     myName[32] = '\0';  // be sure it is NULL terminated.
--- a/EthernetInterface.h	Thu Feb 05 19:02:23 2015 +0000
+++ b/EthernetInterface.h	Mon Feb 23 20:36:52 2015 +0000
@@ -56,10 +56,7 @@
   */
   static int setNewAddr(const char* ip, const char* mask, const char* gateway);
 
-/** setName 
-  *
-  * Set the network name for this device. Apply this before
-  * calling 'connect'.
+  /** Set the network name for this device. Apply this before calling 'connect'.
   *
   * \param myname is the name to assign for this node. 
   *        Only the first 32 characters will be used if the