Older blog entries for shimniok (starting at number 65)

25 Feb 2014 (updated 26 Feb 2014 at 02:11 UTC) »

Things-API exposes Arduino as REST

Things-API (github), by by Vicius Senger, exposes Arduino's physical computing capabilities as REST services through Java on a Raspberry Pi. I had a chance to use it during the JavaOne Raspberry Pi Embedded Challenge.

Here's an overview of how it works...

On the Arduino side, simply declare a Device object, then add things (rest services) to it, defining the pin type and pin number, e.g., Analog pin 2. Then just loop calling the appropriate loop functions.