Remote-io
Remote-io is a Firmata-compatibility IO class for writing nodebot programs and provides remote interaction with any other Johnny-Five capable IO class.
Remote-io was built at IcedDev
Installation
npm install remote-io
Usage
The little devices on the right side of this image are running this common bit of code with an IO class instance specified:
var RemoteIO = ; //The "io" variable here could be any instance of bean-io, rpi-io, etc.io;
Now for the laptop on the left side of the picture, you can simply write johnny-five code that uses a virtual serial port. Your code uses the typical firmata IO class to talk to the remote-io instances.
var five = ;var firmata = ; //The "sp" variable here could be any instance of a virtual serial portvar io = sp; var board = io: io;board;
API
Remote-io subclasses firmata.js and provides the same API.