WebServer example in the Arduino IDE, Ethernet(Galileo) :
Examples --> Ethernet(Galileo) --> WebServer
1) It works as expected (i.e changing only the MAC address) if the Intel Galileo is turned on without any SD-Linux image
2) It does not work if the Intel Galileo is booted with the eglibc image (iot-devkit-prof-dev-image-galileo-20160606.zip)
Also, I attach two "simpler" versions of the webserver sketch without MAC usage and without SPI.h usage, taking advantage of function "system" available in Intel Galileo:
1) WebSrvrNoSD.ino is expected to be used in an Intel Galileo booted without any SD-Linux image
2) WebSrvrEglibc.ino is expected to be used in an Intel Galileo booted with the eglibc image (iot-devkit-prof-dev-image-galileo-20160606.zip)
Both sketches "serve" HTTP in port 80, and differences are in the setup() function, as expected...
thanks for the info,
I have a question, you have an example in which a webserver is made by calling index.html that is in the Galilean sd ?.
I want to take an analog signal and is displayed every 1 second on an analog clock. but that index.html is in the sd gen2 Galilean. to graph it and make statistics.
I appreciate if you can help
It's "relatively" simple, since you can have the .html in your sd and use Linux filesystem operations (it's easier than in Arduino, I think). I'll try to post a simple example if you think you need one. Are you developing in Arduino IDE, right?
Your SD Card should be seen like this, using the current eglibc yocto image
There is an example www directory in the attached .zip
The webserver in the attached .zip is basically one of the previous ones, modified so that reads and sends the contents of the index.html file in the SD filesystem instead of HTML contained in the sketch itself.