tibbo-discover
TypeScript icon, indicating that this package has built-in type declarations

0.2.7 • Public • Published

Tibbo Discover

Coverage Status npm version Build

Discover Tibbo devices on the network

npm i tibbo-discover

Usage

Library
const tibboDiscover = new TibboDiscover();

tibboDiscover.scan().then(devices => {
    console.log(devices);
});

CLI

$ tibbo-discover.js > devices.json
 [
    {
      "board": "TPP2W(G2)-4.00.01",
      "application": "Controlled By Web",
      "ipAddress": "10.0.1.222",
      "id": "[000.036.119.087.075.144]"
    }
  ]

Functions

  • Scan - scan(timeout?: number = 5000)

    Scan for Tibbo devices on the network, with an optional timeout (default: 5000)


  • Query - query(id: sting, timeout?: number = 5000)

    Query information from a Tibbo device on the network, with an optional timeout (default: 5000)


  • Stop - stop()

    Stops all active connections and closes any open sockets


  • Login - login(ipAddress: string, password: string, key: string)

    Stops all active connections and closes any open sockets. Requires the Tibbo device IP address, password, and optionally a shared authentication "key" which defaults to tibbo123.


  • Buzz - buzz(ipAddress: string, password: string, key: string)

    Buzz the Tibbo at the IP address passed to the function


  • Reboot - reboot(ipAddress: string, password: string, key: string)

    Reboot the Tibbo at the IP address passed to the function

Readme

Keywords

none

Package Sidebar

Install

npm i tibbo-discover

Weekly Downloads

0

Version

0.2.7

License

MIT

Unpacked Size

40.2 kB

Total Files

14

Last publish

Collaborators

  • 128keaton