easy-usp
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

easy-usp

Helper library for easy usp communication using mqtt over tcp or ws.

USP Reference

Usage

const connect = require("easy-usp");

const options = {
  host: "192.168.1.1",
  port: 9001,
  protocol: "mqtt",
  username: "admin",
  password: "admin",
};

const run = async () => {
  // Connect to device
  const device = await connect(options);

  // Get property
  await get("Device.WiFi.").then(console.log);

  // Disconnect
  await disconnect(session);
};

run();

Readme

Keywords

none

Package Sidebar

Install

npm i easy-usp

Weekly Downloads

4

Version

0.0.1

License

GPL-2.0-only

Unpacked Size

203 kB

Total Files

67

Last publish

Collaborators

  • iopsys