Set led on arduino by xobxob url link

For Arduino users on XOBXOB
sainiot
Posts: 1
Joined: Sun Feb 22, 2015 5:27 pm

Set led on arduino by xobxob url link

Postby sainiot » Sun Feb 22, 2015 5:36 pm

I have uploaded sketch to arduino to control the led on it through my dashboard on xobxob.but Is it possible to switch on/off the led on arduino by a single URL link through web browser something like http://www.xobxob.com/update/APIKey=5c8 ... switch=off

xobxob
Posts: 18
Joined: Sat Jul 27, 2013 8:41 am

Re: Set led on arduino by xobxob url link

Postby xobxob » Thu Feb 26, 2015 9:48 pm

Hi. Thanks for your question! Yes, you can use a RESTful call to send messages through a XOB. There's more information in this forum link: viewtopic.php?f=5&t=249. The catch is that you can't use a simple <a></a> link in HTML. You need to use a POST request rather than a GET (which the <a> link does).

This stack overflow article has a pretty good discussion of this: http://stackoverflow.com/questions/3915 ... ead-of-get

Let us know if you need more information.


Return to “Arduino”

Who is online

Users browsing this forum: No registered users and 1 guest