HID library for communicating with Concept2 performance monitor modules.
This module provides a wrapper for node-hid for communicating with Concept2 performance monitors.
It depends on node-csafe in order to communicate using the CSAFE protocol.
$ npm install --save concept2
import Concept2 from concept2 import { Command } from csafe // Connect to an available monitor (with vendor ID 6052) const pm3 = new Concept2 // Listen for error a new-frame events. pm3.on('error', (err) => { console.error(err) }) pm3.on('frame', (frame) => { // Do something with the response! console.log(frame) }) // Write a command to the device. const getCadenceCmd = new Command('GetCadence') pm3.write(getCadenceCmd)
$ npm testThe project is licensed under the MIT license.