We are doing a project in which we have to control GPIO of Galileo through a button in webpage using Ethernet for establishing connection. If we press any button in the webpage that data should be sent to Galileo Gen 1 Board.We are using Arduino IDE. If anyone has any valuable inputs on how to do this, please share with us. Requesting you to please share the code also if you have.
But using what code we can read the value from browser and send to Galileo board??? If you can can you please explain the coding part
The example actually read the data sent by the browser;
char c = client.read();
however, it doesn't save the entire data sent by the browser because it's only looking for the reply to be sent. I think you should:
a) read those every data in a String or something similar
b) analyze received data
c) process/do what it is needed to do
d) reply to the browser accordingly
I recommend you to check the following example: https://www.arduino.cc/en/Tutorial/Wifi101SimpleWebServerWiFi https://www.arduino.cc/en/Tutorial/Wifi101SimpleWebServerWiFi. This example is for Wi-Fi, however what I'd like you to check is how a LED can be turn on/off through clicking buttons (link tags) on the web page.
In order to test this example code you would have to adapt it so you can use it by Ethernet.