HTTP server example program for WIZwiki-W7500
Dependencies: WIZnetInterface SDFileSystem httpServer mbed-src
Fork of TCPEchoServer-WIZwiki-W7500 by
This is HTTP server example program for WIZwiki-W7500.
In this example, only you can control RGB LED on/off.
Sample html pages and image are needed. So download samples.
- index.html
- dio_page.html
- image
https://github.com/WIZnet-MbedEthernet/httpServer-WIZwiki-W7500
This example use SD card. So copy html and image files to SD card. If not WIZwiki-W7500 platform, copy html and image files to local filesystem.
There are Korean language in index.html
Revision 18:5d96484995cf, committed 2015-07-01
- Comitter:
- hjjeon
- Date:
- Wed Jul 01 04:06:51 2015 +0000
- Parent:
- 17:be86c9b2cbda
- Commit message:
- Add wait link up code
Changed in this revision
WIZnetInterface.lib | Show annotated file Show diff for this revision Revisions of this file |
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r be86c9b2cbda -r 5d96484995cf WIZnetInterface.lib --- a/WIZnetInterface.lib Tue Jun 30 00:30:08 2015 +0000 +++ b/WIZnetInterface.lib Wed Jul 01 04:06:51 2015 +0000 @@ -1,1 +1,1 @@ -http://developer.mbed.org/teams/WIZnet/code/WIZnetInterface/#27b3e3a39df4 +http://developer.mbed.org/teams/WIZnet/code/WIZnetInterface/#d8773cd4edc5
diff -r be86c9b2cbda -r 5d96484995cf main.cpp --- a/main.cpp Tue Jun 30 00:30:08 2015 +0000 +++ b/main.cpp Wed Jul 01 04:06:51 2015 +0000 @@ -24,7 +24,6 @@ int main() { - printf("Wait a second...\r\n"); HTTPFsRequestHandler::mount("/local/", "/"); svr.addHandler<HTTPFsRequestHandler>("/"); @@ -46,7 +45,13 @@ #endif - + printf("Check Ethernet Link\r\n"); + while(1) //Wait link up + { + if(eth.link() == true) + break; + } + printf("Link up\r\n"); eth.connect(); printf("Server IP Address is %s\r\n", eth.getIPAddress());