tod
v0.0.2
Published
A node.js library for the tōd
Downloads
2
Readme
node-tod
A node.js library for the tōd.
Note: only tested with stock firmware, tod disconnects automatically, so read commands must be quick!
Install
npm install tod
Usage
var Tod = require('tod');
Discover
Tod.discover(callback(tod));
var todName = tod.id;
Connect
tod.connect(callback);
Disconnect
tod.disconnect(callback);
Device Info
tod.readDeviceName(callback(deviceName));
tod.readAppearance(callback(appearance));
tod.readManufacturerName(callback(manufacturerName));
tod.readModelNumber(callback(modelNumber));
tod.readFirmwareRevision(callback(firmwareRevision));
tod.readHardwareRevision(callback(hardwareRevision));
Battery Level
tod.readBatteryLevel(callback(batteryLevel));
TX Power
tod.readTxPower(callback(txPower));