RESTduino

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
jasongullickson
 
Posts: 35
Joined: Tue Dec 21, 2010 12:34 pm

RESTduino

Post by jasongullickson »

Hey guys,

I wrote a little sketch to make it easier for web developers to play with the Arduino. In a nutshell, it lets you use REST-like requests to interface with the I/O pins.

I posted the details and some examples on my posterous:

http://jasongullickson.posterous.com/re ... rest-of-us

...and the code is out on github as well:

https://github.com/jjg/RESTduino

Hopefully some of you find it useful and let me know if you build anything cool with it!


Jason

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm

Re: RESTduino

Post by adafruit »

looks neat, would be interesting to merge this with firmata?

User avatar
jasongullickson
 
Posts: 35
Joined: Tue Dec 21, 2010 12:34 pm

Re: RESTduino

Post by jasongullickson »

adafruit wrote:looks neat, would be interesting to merge this with firmata?
I'm flattered :)

I'm not an expert on Firmata, but if I understand it correctly it is strictly a USB/Serial protocol, correct?

RESTduino requires an Ethernet connection (by nature of being http based). The idea of having a REST-based interface built-in to the default firmware of the Arduino is attractive, but would having this external hardware dependency disqualify it?

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm

Re: RESTduino

Post by adafruit »

mm we mean parsing the firmata commands into rest and replies as json, its pretty close already

User avatar
jasongullickson
 
Posts: 35
Joined: Tue Dec 21, 2010 12:34 pm

Re: RESTduino

Post by jasongullickson »

adafruit wrote:mm we mean parsing the firmata commands into rest and replies as json
So would this parsing happen on the Arduino itself or on a "host" machine attached to the network (sorry if I'm slow on the uptake here :)?

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm

Re: RESTduino

Post by adafruit »

yes on the arduino, just like your code does right now

User avatar
jasongullickson
 
Posts: 35
Joined: Tue Dec 21, 2010 12:34 pm

Re: RESTduino

Post by jasongullickson »

Sounds interesting, I'd like to pursue this further.

Are you involved with the development of Firmata or should I get in touch with the developers via the Firmata site?

Thanks!


Jason

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm

Re: RESTduino

Post by adafruit »

sadly i have nothing to do with firmata but you should email them! :)

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino”