Simple HTTP server example with W5500 (WIZnet chipset) .access the mbed via any browser, mbed echo back http request header.
Dependencies: WIZnet_Library mbed
Fork of HTTPServer_echoback_WIZ550io by
Revision 19:59a668f08555, committed 2014-07-23
- Comitter:
- Bongjun
- Date:
- Wed Jul 23 07:31:24 2014 +0000
- Parent:
- 18:bed64c7e5a72
- Child:
- 20:f0c3af075949
- Commit message:
- DHCP test is ok
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Mon Jul 21 07:45:30 2014 +0000 +++ b/main.cpp Wed Jul 23 07:31:24 2014 +0000 @@ -5,6 +5,8 @@ #include <string.h> #define PORT 80 +//#define PORT 888 +#define _DHCP // move to main(). //EthernetInterface eth; @@ -70,7 +72,8 @@ printf("IP Address is %s\n\r", eth.getIPAddress()); */ -#ifdef _DHCP // didn't test yet in DHCP +#ifdef _DHCP +// didn't test yet in DHCP => TEST OK... eth.init(); //Use DHCP eth.connect();