Skip to content Skip to sidebar Skip to footer

Python And Arduino Serial Communication

I have a arduino Uno connected to my laptop through USB. I am running WAMP webserver on windows 7. I have python 2.7 and py serial installed. I wrote a HTML where the buttons when

Solution 1:

If the content of the python script is the content of cgi-bin/led.py, it has to look like this:

7print"Content-type: text/html"8print910print"""
  11 <html>
  12 
  13 <head><title>Sample CGI Script</title></head>
  14 
  15 <body>
  16 
  17   <h3> Sample CGI Script </h3>
  18 """

from http://wiki.python.org/moin/CgiScripts

You are missing the header in the python script.

Post a Comment for "Python And Arduino Serial Communication"