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

Files at this revision

API Documentation at this revision

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

FCT_WEB.lib Show annotated file Show diff for this revision Revisions of this file
hebergement.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 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;