tod

A node.js library for the tōd

npm install tod
1 downloads in the last week
9 downloads in the last month

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));
npm loves you