@mmontes11/iot-client

    3.5.2 • 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);
    }

    Install

    npm i @mmontes11/iot-client

    DownloadsWeekly Downloads

    4

    Version

    3.5.2

    License

    MIT

    Unpacked Size

    67.3 kB

    Total Files

    21

    Last publish

    Collaborators

    • mmontes11