Nodejs client for the Reflecta Heartbeat library
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
LICENSE
README.md
package.json
reflecta_hart1.js

README.md

reflecta_hart1

reflecta_hart1 binds the function setFrameRate to the hart1 interface. This is the Arduino library that enables heartbeats with data coming from the Arduino to be frame rate controlled by the receiver.

Stability: Medium

Calling reflecta_hart1 from NodeJS

Simply load reflecta using

npm install reflecta
var reflecta = require('reflecta');

reflecta.detect(function(error, boards, ports) {

    board = boards[0];

    if (board.hart1) {
        board.hart1.setFrameRate(20);
    }
});

Reflecta will use npm to install and load this library automatically if the Arduino exposes the 'hart1' interface.

A simple but complete example can be found in the node-reflecta project.

Release History

  • 0.1.0: Initial release