@shome/ebus-client
v0.1.0
Published
Node.js client for [ebusd](https://github.com/john30/ebusd)
Downloads
3
Readme
@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