0.5.0 • Published 4 years ago

jiofi v0.5.0

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

❤️ it? ⭐️ it on GitHub or Tweet about it.

Table of Contents

Installation

Ensure you have Node.js 10 or later installed. Then run the following:

# via npm
npm install jiofi

# or yarn
yarn add jiofi

Usage

const JioFi = require('jiofi');

const jiofiDevice = new JioFi();

(async () => {
  const info = await jiofiDevice.getInfo();
  console.log(info);
  //=> {imei: '1234567890001111', hardwareVersion: 'HVT_JMR1040_D01', macAddress: 'xx:xx:xx:xx:xx:xx', model: 'JioFi JMR1040', serialNumber: 'ABCDEFG12345678'}

  const state = await jiofiDevice.getState();
  console.log(state);
  //=> {battery: {exist: true, state: 'Discharging', mode: null, percent: 65}}
})();

API

JioFi()

Returns a new instance.

Instance

.getInfo()

Get hardware information.

.getState()

Get device's Battery state, Uplink/Downlink stats, CPU Usage, and Data Usage.

Issues

Looking to contribute? Look for the Good First Issue label.

Tested on

  • JioFi JMR1040

🐛 Bugs

Please file an issue here for bugs, missing documentation, or unexpected behavior.

See Bugs

Linting & TypeScript Config

License

MIT © Abhijith Vijayan

0.5.0

4 years ago

0.4.0

4 years ago

0.3.0

4 years ago

0.2.2

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago