iqos

1.0.1 • Public • Published

iQOS

[Not official] iQOS Device BLE Communication Library, written in TypeScript, using web-bluetooth api.

Getting started

Docs

Installing Library

# Using Yarn 
yarn add iqos

or

# Using NPM 
npm i -S iqos

Working with Library

import { iQOS } from 'iqos';
// Or using default export:
// import iQOS from 'iqos';
 
const handleUpdate = (iqosInstance) => {
    console.log(iqosInstance.batteryValue); // Example output -> {holderReady: true, case: 100}
}
 
// For Browser use: 
const iqos = new iQOS(navigator.bluetooth, handleUpdate);
 
console.log(iqos.batteryValue); // Example output -> {holderReady: true, case: 100}

iQOS is a trademark of Philip Morris International.

Package Sidebar

Install

npm i iqos

Weekly Downloads

3

Version

1.0.1

License

MIT

Unpacked Size

434 kB

Total Files

38

Last publish

Collaborators

  • 0x77dev