usriot.js

1.4.0 • Public • Published

Node.js client library to communicate with USR IoT devices#

Usage

var WiFiIO = require('wifiio.js');
var connection = new WiFiIO({host: 'localhost', port: 8899});
connection.connect(function () {
    console.log('Connected successfully!');
    connection.invertIO(3, function () {
        connection.disconnect();
        process.exit();
    });
});

Look for more examples here: /example

Author

Alexander Borovsky, BeeToo

TODOs

  • Take a look at C# library: https://github.com/JohnMasen/USRWin
  • Add more test suites with mockup device
  • Add response parsing
  • Add keep-alive and auto reconnect
  • Add send queue
  • Implement multiple channels command, such as 0x07 BBBB select multiple channel clear

Official Protocol documentation

Dependencies (0)

    Dev Dependencies (2)

    Package Sidebar

    Install

    npm i usriot.js

    Weekly Downloads

    0

    Version

    1.4.0

    License

    ISC

    Last publish

    Collaborators

    • aborovsky