Modified official MBED EthernetInterface The only changes are to allow hostname to be set and got
Dependencies: Socket lwip-eth lwip-sys lwip
Fork of EthernetInterfacePlusHostname by
Diff: EthernetInterface.h
- Revision:
- 35:cba86db5ab96
- Parent:
- 30:4d7d7dc8485f
- Child:
- 37:926eb6517318
diff -r 4aa9e92d1a58 -r cba86db5ab96 EthernetInterface.h --- a/EthernetInterface.h Tue Oct 01 11:29:54 2013 +0000 +++ b/EthernetInterface.h Wed Oct 09 12:00:18 2013 +0100 @@ -69,6 +69,16 @@ * \return a pointer to a string containing the IP address */ static char* getIPAddress(); + + /** Get the Gateway address of your Ethernet interface + * \return a pointer to a string containing the Gateway address + */ + static char* getGateway(); + + /** Get the Network mask of your Ethernet interface + * \return a pointer to a string containing the Network mask + */ + static char* getNetworkMask(); }; #include "TCPSocketConnection.h"