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 :
Diff: main.cpp
- Revision:
- 12:61b10a733ede
- Parent:
- 11:afb33350db83
- Child:
- 13:c8b148c37fc4
--- a/main.cpp Tue Jul 28 20:24:02 2015 +0000 +++ b/main.cpp Wed Jul 29 18:02:03 2015 +0000 @@ -11,7 +11,7 @@ #include <UIPClient.h> #include <string> -// PC_0 (connectique Morpho) : Entrée Analogique (0 à 3.3V) +// PC_5 (connectique Morpho) : Entrée Analogique (0 à 3.3V) // Carte ENC28J60 <--> Nucleo F411RE // PB_5 (connectique Morpho) : MOSI @@ -20,7 +20,7 @@ // PB_6 (connectique Morpho) : CS DigitalOut myled(LED1); -AnalogIn a_in(PC_0); +AnalogIn a_in(PC_5); // PC_5 au lieu de PC_0 using namespace std; @@ -238,7 +238,7 @@ httpContent += buffer; httpContent += "Seconds\r\n<hr>\r\n"; //---------------- - httpContent += "AnalogIn(PC_0) : "; + httpContent += "AnalogIn(PC_5) : "; sprintf(buffer, "%.0f mV\r\n", meas); httpContent += buffer; httpContent += "<hr>\r\n<p>Usage Password Page :<p>http://host_or_ip/password<p><hr>\r\n";