@larva.io/clouddevice
TypeScript icon, indicating that this package has built-in type declarations

2.1.5 • Public • Published

Larva.io Cloud Device connection

With this module you can connect to larva.io cloud device via broker proxy.

License: Attribution-NoDerivatives 4.0 International

Documentation

docs.larva.io

Getting started

npm install --save @larva.io/clouddevice
import { Device } from '@larva.io/clouddevice';

const device = new Device('deviceId', 'unitId', 'accessToken', {
    server: 'wss://broker.larva.io',
    timeout: 8000
});
device.open().then(() => {
    return device.getUINodes();
}).then(nodes =>{
    console.log(nodes);
    return device.close();
});

Package Sidebar

Install

npm i @larva.io/clouddevice

Weekly Downloads

20

Version

2.1.5

License

SEE LICENSE IN LICENSE.md

Unpacked Size

136 kB

Total Files

17

Last publish

Collaborators

  • reijosirila