@atvise/modular-webmi
v0.2.1
Published
Modular exports for webmi.js
Downloads
219
Readme
@atvise/modular-webmi
Modular exports for webmi.js: Re-exports parts of webmi.js with some API improvements (e.g. Promise support), written in TypeScript.
Please note that this currently work in progress.
Installation
Run npm install --save-dev @atvise/modular-webmi
to install this package from npm.
Currently it's also required that a working webmi.js is loaded in the browser.
Usage
import { read } from '@atvise/modular-webmi';
read<number>('AGENT.OBJECTS.test')
.then(({ value }) => console.log('Test, trippled:', value * 3))
.catch((error) => console.error('Cannot read test', error));
This package is part of the create-atvise-app project.
Refer to it's documentation for more information.