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

3.0.2 • Public • Published

flow-analyzer-com-communicator

This lib exposes a Communicator to communicate with imtmedical gaz flow analyzers such as pf300 & citrex devices through serial port.

Supported devices

  • PF300
  • Citrex H4

Install

npm install

Usage

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

const communicator = createCommunicator();

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

API

Check the API details

/@eove/flow-analyzer-com-communicator/

    Package Sidebar

    Install

    npm i @eove/flow-analyzer-com-communicator

    Weekly Downloads

    3

    Version

    3.0.2

    License

    MIT

    Unpacked Size

    86.2 kB

    Total Files

    87

    Last publish

    Collaborators

    • peio
    • michaelborde