Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of WIZnetInterface by
Revision 20:bda61525ac71, committed 2015-07-22
- 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.
