test ADC avec page Web reduite
Dependencies: UIPEthernet mbed FCT_WEB hebergement
Fork of Nucleo_Web_ENC28J60 by
P.S : 1ère mise en fonctionnement de la carte NUCLEO STM32F411RET6
Instruction pour la mise en fonctionnement : https://developer.mbed.org/users/Fo170/notebook/the-stm32-nucleo-64-board/
Diff: main.cpp
- Revision:
- 9:2f7ad2b13ec8
- Parent:
- 8:305b64d7dd23
- Child:
- 10:bbee7dd4bcda
--- a/main.cpp Mon Jul 27 21:20:49 2015 +0000 +++ b/main.cpp Tue Jul 28 11:05:08 2015 +0000 @@ -141,7 +141,8 @@ httpContent = ""; httpContent += "<h1>301 Moved Permanently "; - httpContent += __image_301_Moved_Permanently__ + "</h1>\r\n"; + httpContent += __image_301_Moved_Permanently__; + httpContent += "</h1>\r\n"; return (httpContent); } @@ -155,10 +156,16 @@ //Seconds = Seconds + 1; //------------- httpContent = "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01//EN\" \"http://www.w3.org/TR/html4/strict.dtd\">\r\n"; - httpContent += "<meta http-equiv=\"refresh\" content=\"" + __Temp_between_measurements__ + ";url=http://" + __IP_LOCAL__ + "/\">\r\n"; + httpContent += "<meta http-equiv=\"refresh\" content=\""; + httpContent += __Temp_between_measurements__; + httpContent += ";url=http://"; + httpContent += __IP_LOCAL__; + httpContent += "/\">\r\n"; httpContent += "<HTML><HEAD>\r\n"; httpContent += "<title>WEB Server Nucleo F411RE - ENC28J60 - Flot Examples: Interactivity</title>\r\n"; - httpContent += "<script language=\"javascript\" type=\"text/javascript\" src=\"" + __hebergement__ + "WebServerNucleo_Interactivity_init.js\"></script>\r\n"; + httpContent += "<script language=\"javascript\" type=\"text/javascript\" src=\""; + httpContent += __hebergement__; + httpContent += "WebServerNucleo_Interactivity_init.js\"></script>\r\n"; httpContent += "<script language=\"javascript\" type=\"text/javascript\">init_WebServerNucleo_Interactivity();</script>\r\n"; // Variables JavaScript httpContent += "<script language=\"javascript\" type=\"text/javascript\">\r\n"; @@ -218,8 +225,9 @@ httpContent += "<HTML><HEAD>\r\n"; httpContent += "<title>WEB Server Nucleo F411RE - ENC28J60 - Password Page</title>\r\n"; httpContent += "</HEAD><BODY>\r\n"; - httpContent += "<center><h2>WEB Server Nucleo F411RE - ENC28J60 - Password Page</h2></center>\r\n"; - httpContent += "<p>" + __image_Password_Folder__ + "<p>\r\n"; + httpContent += "<center><h2>WEB Server Nucleo F411RE - ENC28J60 - Password Page</h2></center>\r\n<p>"; + httpContent += __image_Password_Folder__; + httpContent += "<p>\r\n"; if(status == 1) { @@ -316,7 +324,9 @@ if(cmd == -1) { httpHeader = UNAUTHORIZED; - httpContent = "<h1>401 Unauthorized " + __image_401_Unauthorized__ + "</h1>\r\n"; + httpContent = "<h1>401 Unauthorized "; + httpContent += __image_401_Unauthorized__; + httpContent += "</h1>\r\n"; http_send(client, httpHeader, httpContent); continue; }