@mmontes11/iot-client

3.11.0 • Public • Published

@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);
}

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 3.11.0
    0
    • latest

Version History

Package Sidebar

Install

npm i @mmontes11/iot-client

Weekly Downloads

0

Version

3.11.0

License

MIT

Unpacked Size

67.3 kB

Total Files

21

Last publish

Collaborators

  • mmontes11