This package has been deprecated

Author message:

this package has been deprecated, please checkout @eove/flow-analyzer-com-communicator

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

1.1.9 • Public • Published

flow-analyzer-com Build Status npm version code style: prettier

Node.js lib to communicate with imtmedical gaz flow analyzers such as pf300 & citrex devices through serial port.

Supported devices

  • PF300
  • Citrex H4

Install

npm install

Usage

This lib exposes a communicator which may send commands to the gaz flow analyzer device and get answers.

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

const communicator = createCommunicator();

communicator.open('/dev/ttyUSB0').then(() => {
  return communicator
    .sendCommand({ type: 'READ_MEASUREMENT', payload: { name: 'o2' } })
    .then(console.log);
});

API

Check the API details

Example: TalkToAnalyzer

For those who want a ready to use CLI tool to talk to analyzer devices, please check: https://github.com/eove/talk-to-analyzer

Package Sidebar

Install

npm i @eove/flow-analyzer-com

Weekly Downloads

1

Version

1.1.9

License

MIT

Unpacked Size

57.8 kB

Total Files

69

Last publish

Collaborators

  • fribes
  • michaelborde
  • peio