Simple HTTP server example with WIZ550io, W5500 (WIZnet chipset) .access the mbed via any browser, mbed echo back http request header.
Dependencies: W5500Interface mbed
Fork of HTTPServer_echoback_WIZ550io by
Diff: main.cpp
- Revision:
- 19:59a668f08555
- Parent:
- 18:bed64c7e5a72
- Child:
- 20:f0c3af075949
diff -r bed64c7e5a72 -r 59a668f08555 main.cpp --- 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();