Ceci est une ancienne révision du document !
Galileo Gen2 Web server
Within this part of the Galileo Gen 2 tutorial, we will explore some of the basic protocols used to transmit information from the Galileo Gen 2 to an IP address that can be recovered via a web browser.
We will start with the most basic example:
Secondly, we will try and create a static page:
Lastly, and the most complex (for Newbie's and Arduino users):
Arduino Webserver Example
<note> Any user who wishes to use this method should FIRST follow the instructions within the previous section to run the “getip” arduino script. This will require booting the Galileo with the SD image of linux (Yocto Poky 3.3.4). NOTE THE IP ADDRESS </note>
We will assume that the user has already noted their IP address for their Galileo Gen 2 using the “getip” script OR any other method. We will start with the Galileo Gen 2 now unplugged from it's powersupply & USB port.
NOTE Always unplug the Power Supply last. DO NOT run your Galileo using just the USB port.
Setting up the Galileo Gen 2
<note> For this example, the Galileo Must boot from the integrated linux image. In other words, we can not run this example with the SD card image
</note>
We will now see that we are transmitting the status of the Analog Pins 1-6 of the Arduino. We can easily image that these values can be the outputs of any form of sensor.
Arduino WebServer Conclusion
This is perhaps the easiest way to jump-start a WebServer project with the Galileio Gen 2. However, we may find ourselves quickly limited with the presentation of the data streaming to the IP address. In order to We can run the WebClient Example just as easily and we will find that we can also transmit from the PC to the Galileo to pilot the Input/Output pins.