@mmontes11/iot-client

ES6 client library for consuming IoT server REST API

Stats

StarsIssuesVersionUpdatedCreatedSize
@mmontes11/iot-client
103.5.15 months ago4 years agoMinified + gzip package size for @mmontes11/iot-client in KB

Readme

@mmontes11/iot-client

License: MIT

Cross platform client for IoT.

Installation

NPM

$ npm i --save @mmontes11/iot-client

Usage

import { IoTClient } from "@mmontes11/iot-client";

const iotClient = new IoTClient({
  url: 'http://localhost:8000',
  username: 'foo',
  password: 'bar',
  basicAuthUsername: 'foo',
  basicAuthPassword: 'bar'
});

try {
  const res = await iotClient.observationsService.create({
    observations,
    thing,
  });
  console.log(res);
} catch (err) {
  console.log(err);
}

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.