The Acme Systems shipping office will be closed for holidays from 14 august to 22 august

Control a blinking led via Web

On this article we'll extend the simple Web server written in Python illustrated in the article to control remotely via Web a blinking led on the

Visit also: Control a led remotely using Tornado web server

Basic example

This is the first examples we'll try:

It performs the following tasks:

  • blink the L1 led on a Daisy-11
  • process the html GET requests from the web browser on port 8080 and provide the control panel index_led1.html
  • process the html POST request to start and stop the led blinking

Run it by typing:

debarm:~/playground/python/httpserver# python

Then open your web browser on this URL: http://fox_ip_address:8080.

Related links