Wondering what’s next for npm?Check out our public roadmap! »

    tethercell

    1.0.0 • Public • Published

    node-tethercell

    Analytics

    Node.js lib for the Tethercell

    Install

    npm install tethercell

    Usage

    var Tethercell = require('tethercell');

    Discover

    Tethercell.discover(callback(tethercell));

    Connect and Setup (discover services and characteristics)

    tethercell.connectAndSetup(callback(error));

    Disconnect

    tethercell.disconnect(callback);

    Authorize

    var pin = '00000000';
     
    tethercell.authorize(pin, callback(error));

    Turn on/off, is on

    tethercell.turnOn(callback(error));
     
    tethercell.turnOff(callback(error));
     
    tethercell.isOn(callback(error, isOn));

    Voltage

    tethercell.readVoltage(callback(error, voltage));

    Device Name

    tethercell.readDeviceName(callback(error, deviceName));
     
    var deviceName = 'TETHERCELL ONE';
     
    tethercell.writeDeviceName(deviceName, callback(error));

    Keywords

    Install

    npm i tethercell

    DownloadsWeekly Downloads

    2

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • avatar