tod

    0.0.2 • Public • Published

    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));
    

    Keywords

    none

    Install

    npm i tod

    DownloadsWeekly Downloads

    0

    Version

    0.0.2

    License

    MIT

    Last publish

    Collaborators

    • sandeepmistry