flow-analyzer-com
Node.js lib to communicate with imtmedical gaz flow analyzers such as pf300 & citrex devices through serial port.
Supported devices
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