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 Zoltan Hudak

Page généré : /media/uploads/Fo170/webservernucleo.png

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 : /media/uploads/Fo170/vue_d_ensemble_1.jpg

/media/uploads/Fo170/vue_d_ensemble_2.jpg

Vue de la carte ENC28J60 : /media/uploads/Fo170/carte_enc28j60_a.jpg

/media/uploads/Fo170/carte_enc28j60_b.jpg

Carte Nucléo : /media/uploads/Fo170/nucleo_stm32f411re.jpg

Revision:
16:c074bfec598f
Parent:
15:b241b1fccd1f
--- 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;