Skip to content

pascaljp/ibs_th1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A library to handle broadcasted message from bluetooth device IBS-TH1 and IBS-TH1 mini.

Resources

Stars

Watchers

Forks

Packages

No packages published