This lib exposes a Communicator
to communicate with imtmedical gaz flow analyzers such as pf300 & citrex devices through serial port.
- PF300
- Citrex H4
npm install
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);
});
Check the API details