1.2.2 • Published 3 years ago

ibs_th1 v1.2.2

Weekly downloads
10
License
MIT
Repository
github
Last release
3 years ago

IBS-TH1

A library to handle broadcasted message from bluetooth device IBS-TH1, IBS-TH1 mini and IBS-TH1 Plus. 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);
import {IBS_TH1, RealtimeData} from '../src/ibs_th1';

const callback = (data: RealtimeData) => {
  console.log(data);
};

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

License

MIT

1.2.0

3 years ago

1.2.2

3 years ago

1.2.1

3 years ago

1.1.0

5 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago