UNPKG

vastra-radiator-valve

Version:

Node.js library to query and configure Vastra's smart radiator valves.

12 lines (11 loc) 470 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var bluetooth_noble_1 = require("../lib/bluetooth-noble"); var scanner_1 = require("../lib/scanner"); bluetooth_noble_1.default.create().then(function (bluetooth) { var scanner = new scanner_1.RadiatorValveScanner(bluetooth); scanner.on("connected", function (valve) { console.log("Found a radiator valve @ ".concat(valve.peripheral.address)); }); scanner.start(); });