Page 1 of 1

REST service & Arduino Yun: Help I don't know what I'm doing!

Posted: Sun Nov 03, 2013 9:38 pm
by Val Hillebrand

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!


REST service & Arduino Yun: Help I don't know what I'm doing!

Posted: Sun Nov 03, 2013 9:57 pm
by maxkatz

Show us a curl command for your REST service, we will help you define the service in Appery.io builder.


REST service & Arduino Yun: Help I don't know what I'm doing!

Posted: Sun Nov 03, 2013 10:12 pm
by Val Hillebrand

Hi Max,

Thanks.

According to Arduino curl would be:

Curl http://myArduinoYun.local/arduino/dig...

or simply via a browser:

http://myArduinoYun.local/arduino/dig...

This would return: Pin 13 is set to 1

I hope this answers your question?

Thanks for looking into this with me.

-Val


REST service & Arduino Yun: Help I don't know what I'm doing!

Posted: Sun Nov 03, 2013 10:14 pm
by maxkatz

The URL should point to a service on the Internet. Is there such example?