0.1.0 • Published 5 years ago

@shome/ebus-client v0.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

@shome/ebus-client

Node.js client for [ebusd](https://github.com/john30/ebusd) 

Installation

$ npm install @shome/ebus-client --save

Usage

Creating client

import EBusClient from '@shome/ebus-client';

const client = new EBusClient({
    enabled: true|false,
    host: <host>,
    port: <port>,
});

Run ebus command find:

const response = await client.find();

Response will be string.

Read all registers from device bai.

for await (const [name, value] from client.readAll('bai')) {
    ...
}
> Response is async generator.

## License

MIT