
HTTP server is created by connecting an ENC28J60 module to the mbed board. It is serving a webpage which enables remotely turn on/off LED1 (or other device). Compile, download, run and type 192.168.0.170/secret/ into your web browser and Flot Interactivity Graphique
Dependencies: UIPEthernet mbed FCT_WEB hebergement
Fork of WebSwitch_ENC28J60 by
Page généré :
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/
Vue d'ensemble :
Vue de la carte ENC28J60 :
Carte Nucléo :
Revision 16:c074bfec598f, committed 2015-09-28
- Comitter:
- Fo170
- Date:
- Mon Sep 28 22:20:08 2015 +0000
- Parent:
- 15:b241b1fccd1f
- Commit message:
- mise a jours info carte ENC28J60 de MikroE
Changed in this revision
diff -r b241b1fccd1f -r c074bfec598f FCT_WEB.lib --- a/FCT_WEB.lib Wed Aug 19 16:12:10 2015 +0000 +++ b/FCT_WEB.lib Mon Sep 28 22:20:08 2015 +0000 @@ -1,1 +1,1 @@ -https://developer.mbed.org/users/Fo170/code/FCT_WEB/#b52ad028c502 +https://developer.mbed.org/users/Fo170/code/FCT_WEB/#ba0105da75cd
diff -r b241b1fccd1f -r c074bfec598f hebergement.lib --- a/hebergement.lib Wed Aug 19 16:12:10 2015 +0000 +++ b/hebergement.lib Mon Sep 28 22:20:08 2015 +0000 @@ -1,1 +1,1 @@ -https://developer.mbed.org/users/Fo170/code/hebergement/#8f40eff6b3ce +https://developer.mbed.org/users/Fo170/code/hebergement/#11e8d85ca94c
diff -r b241b1fccd1f -r c074bfec598f main.cpp --- a/main.cpp Wed Aug 19 16:12:10 2015 +0000 +++ b/main.cpp Mon Sep 28 22:20:08 2015 +0000 @@ -11,6 +11,8 @@ #include <UIPClient.h> #include <string> + // Carte ENC28J60 : http://www.mikroe.com/add-on-boards/communication/serial-ethernet-proto/ + // PC_5 (connectique Morpho) : Entrée Analogique (0 à 3.3V) // Carte ENC28J60 <--> Nucleo F411RE @@ -157,7 +159,7 @@ httpContent += str_Compilation_DATE_AND_TIME; // httpContent += str_Logo_image; - httpContent += "<p></center>\r\n<hr><p>\r\n"; + httpContent += "<p>\r\n<hr><p>\r\n"; if(status == 1) { @@ -174,16 +176,16 @@ httpContent += "<hr>\r\n"; //------------- - httpContent += "(Contact repos) \r\n"; + httpContent += "USER BUTTON (Contact repos) \r\n"; if(button_usr) { - httpContent += "<font color=#00FF00>BUTTON ON</font> "; + httpContent += "<font color=#00FF00>ON</font> "; httpContent += str_ampoule_ON; httpContent += "\r\n"; } else { - httpContent += "<font color=#FF0000>BUTTON OFF</font> "; + httpContent += "<font color=#FF0000>OFF</font> "; httpContent += str_ampoule_OFF; httpContent += "\r\n"; } @@ -207,9 +209,11 @@ sprintf(buffer, "%.0f mV ", meas); httpContent += buffer; httpContent += str_thermometre; - httpContent += "<hr>\r\n<p>Usage Password Page :<p>http://host_or_ip/password<p><hr>\r\n"; + httpContent += "<hr>\r\n<p>Usage Password Page : "; + httpContent += str_password_folder_x64; + httpContent += "<p>http://host_or_ip/password<p><hr>\r\n"; httpContent += "<script language=\"javascript\" type=\"text/javascript\">WebServerNucleo_Interactivity();</script>\r\n"; - httpContent += "</BODY></HTML>"; + httpContent += "</center></BODY></HTML>"; //----------- //wait(1); return httpContent;