This package has been deprecated

Author message:

this package has been deprecated, please checkout @eove/power-supply-com-communicator

@eove/power-supply-com
TypeScript icon, indicating that this package has built-in type declarations

1.4.10 • Public • Published

power-supply-com Build Status npm version code style: prettier

Node.js lib to communicate with power supply devices such as ITECH IT6932A model through serial port.

Supported devices

  • IT6932A

Install

npm install

Usage

This lib exposes a communicator which may send commands to the power supply device and get answers.

import { createCommunicator } from '@eove/flow-analyzer-com';

const communicator = createCommunicator('/dev/ttyUSB0');

communicator
  .open()
  .then(() => communicator.sendCommand({ type: 'QUERY_IDENTIFICATION' }))
  .then(console.log);

Here's the API documentation

How to contribute?

You would like a power supply device to be supported?

Here are the steps:

  1. Find the corresponding PDF documentation and eventually add it to ./docs
  2. Create a ./lib/devices/<your-model> directory and implement the methods of the Driver Interface
  3. Send a PR for review and have fun testing!

Readme

Keywords

Package Sidebar

Install

npm i @eove/power-supply-com

Weekly Downloads

1

Version

1.4.10

License

MIT

Unpacked Size

36.8 kB

Total Files

73

Last publish

Collaborators

  • fribes
  • michaelborde
  • peio