tibbo-discover
v0.2.7
Published
Discover Tibbo devices on the network
Downloads
5
Readme
Tibbo Discover
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