HTTP Server serving a simple webpage which enables to remotely turn LED1 on/off. Compile, download, run and type 'IP_address/secret/' (don't forget the last '/') into your web browser and hit ENTER.

Dependencies:   W5500Interface mbed

Turn LED1, or other digital output, on/off using a web browser.

In this example we create a HTTP server that will serve a simple Web page to remotely turn LED1, or other digital output on the mbed board, on/off by using a web browser. A WIZ550io module or W5500 Network-Shielld is used to assure connection between the mbed module and the Ethernet network (Internet).

Needed parts:

  • mbed board
  • WIZ550io module or W5500 Network-Shield
  • Wires
  • Web browser (Internet Explorer, Safari, Firefox, Chrome ...) running on Windows, Mac, Linux, iPhone or Android device.
/media/uploads/hudakz/webswitch_wiz.jpg/media/uploads/hudakz/webswitch_mobile01.jpg

The project was inspired by the Tuxgraphics Web Switch. Thank you Guido!

NOTE:

Revision:
2:3803ea61daa1
Parent:
1:343d3c7e13b8
Child:
3:d0e3d1bd73e6
--- a/main.cpp	Mon Mar 16 09:24:23 2015 +0000
+++ b/main.cpp	Mon Mar 16 09:30:02 2015 +0000
@@ -1,4 +1,5 @@
-/* In this project LED1 on the mbed board is switched on/off using a web browser.
+/* 
+ * In this project LED1 on the mbed board is switched on/off using a web browser.
  * However, you can easily modify the project to remotely switch on/off any external device.
  * The HTTP server is built from an mbed board and a WIZ550io board.
  * The example is based on the Tuxgraphics Web Switch <http://www.tuxgraphics.org/>.