WebServer for WIZwiki-W7500 Network Information LED controller Analog value Monitoring image load

Dependencies:   SDFileSystem WIZnetInterface httpServer_with_Ethernt mbed

Fork of httpServer-WIZwiki-W7500 by WIZnet

This is HTTP server example program for WIZwiki-W7500.

In this example, you can get Network Information and control LED and... Monitoring Analog value!!

Sample html pages and image are needed. So download samples.

  • index.html
  • net_info.html
  • dio_page.html
  • ain_page.html
  • wiznet_logo.png

Web server html files

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.

Revision:
18:5d96484995cf
Parent:
17:be86c9b2cbda
Child:
19:0ea7e7a9ebae
--- 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());