hmmbug / inkbird

ble devices to mqtt

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

IBS-TH1

A library to handle broadcasted message from bluetooth device IBS-TH1 and IBS-TH1 mini. Not tested with other devices.

NPM Version

Install

npm i -S ibs_th1

Usage

const IBS_TH1 = require('ibs_th1');

const callback = data => {
  console.log(data.address, data.date, data.temperature, data.humidity,
              data.probeType, data.battery);
};

const device = new IBS_TH1();
device.subscribeRealtimeData(callback);

License

MIT

About

ble devices to mqtt


Languages

Language:JavaScript 100.0%