Book Image

Python Programming for Arduino

Book Image

Python Programming for Arduino

Overview of this book

Table of Contents (18 chapters)
Python Programming for Arduino
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Developing web applications using Python


By implementing the previous program, you have enabled networking on Arduino. In the preceding example, we created an HTTP web server using methods available from the Ethernet library. By creating an Arduino web server, we made the Arduino resources available on the network. Similarly, Python also provides extensibility by way of various libraries to create web server interfaces. By running the Python-based web server on your computer or other devices such as the Raspberry Pi, you can avoid using Arduino to host the web server. Web applications created using high-level languages such as Python can also provide additional capabilities and extensibility compared to Arduino.

In this section, we will use the Python library, web.py, to create a Python web server. We will also use this library to create interactive web applications that will enable the transfer of data between an Arduino client and a web browser. After you have learned the basics of web...