Val Hillebrand
Posts: 0
Joined: Sun Nov 03, 2013 9:33 pm

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

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!

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

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

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

Val Hillebrand
Posts: 0
Joined: Sun Nov 03, 2013 9:33 pm

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

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

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

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

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

Return to “Issues”