What is a Web Server?
The Galileo, acting as a Web Server, can host a web page, this web page can be reached by opening a web browser and navigating to the IP address of the Galileo.
The Galileo will respond with the HTML you’ve created.
What is the Web Server used for?
The hosted web page acts as a user interface to the Galileo, this allows you to:
- Control the GPIO pins, via a web interface.
- Display the values of GPIO pins on your web page.
- Send system commands to the operating system, via a web interface.
For more information on what a Web Server is, here are some useful links:
How do we make a Web Server?
There are several ways to create a Web Server, the main 3 methods are:
- Create a Web Server using the Arduino IDE example.
- Create a Web Server using Node.js, which comes installed on the Galileo.
- Create a Web Server using Python, which may be useful if you have a lot of scripting already completed in Python.
Click on the links above to see how I’ve used these methods to create a Web Server.
Each of the above has their own benefits and drawbacks, for example, using the Arduino IDE example is the least flexible Web Server methodology – however it provides the best (in my opinion) interface to control the GPIO’s.