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.
Fork of WebSwitch_mbed-os by
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/off by using a web browser.
Notice that DHCP is turned on by default. The IP address assigned to the WebSwitch server along with an instruction how to use it is printed to the connected PC's serial terminal window during program start up.
To use static IP address uncomment and adjust line #221 in main.cpp.
The project was inspired by the Tuxgraphics Web Switch. Thank you Guido!
For a Web Switch using
- mbed OS 2 see WebSwitch_mbed-dev
- ENC28J60 Ethernet module see WebSwitch_ENC28J60
- WIZ550io or W5500 Ethernet module see WebSwitch_Wiz550io.
Changes
Revision | Date | Who | Commit message |
---|---|---|---|
12:138b2b3d041a | 2020-10-27 | hudakz | Tiny HTTP server switching LED1 (or other DigitalOut) on/off. |
11:101be77aa5db | 2020-10-27 | hudakz | Tiny HTTP server switching LED1 (or other DigitalOut) on/off. |
10:c8b752da3be8 | 2020-10-27 | hudakz | Tiny HTTP server switching LED1 (or other DigitalOut pin) on/off. |
9:161bed13b17e | 2019-07-01 | hudakz | Tiny web server controlling a DigitalOut. |
8:47b0cb4b5b7d | 2018-10-30 | hudakz | Updated. |
7:02a0635aeeac | 2018-01-16 | hudakz | Shows MAC address. |
6:e2d251d535f0 | 2017-05-09 | hudakz | Button rounded. |
5:e1218721aefd | 2017-05-08 | hudakz | Added sliding switch button. |
4:d7c37f516f5f | 2017-05-06 | hudakz | Updated. |
3:c927a415dd38 | 2017-05-06 | hudakz | Updated. |
2:33e8bb5615a6 | 2017-05-06 | hudakz | Initial issue. |
1:be0139af12f2 | 2017-04-06 | hudakz | Updated. |
0:e455fdb56bc8 | 2017-04-06 | hudakz | Initial release. |