I'm new and trying to learn but am completely stuck on the REST service. I'm trying to make it work for the Arduino Yun. The rest function on the ardiuno lets me set certain value's when entering an url for exmpl: arduino.local/arduino/digital/9/1 to set a pin on HIGH. entering arduino.local/arduino/digital/9 returns the value of that pin in text: "pin 9 is set to HIGH" and so on. My question is, how can i set up a Rest service so a button would show the status of the pin and would be able to change it.
thanks for any help!