Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A node.js library for the tōd
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.gitignore
README.md
index.js
package.json
test.js

README.md

node-tod

Analytics

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));
Something went wrong with that request. Please try again.