Communicator to communicate to flow analyzer
npm install @eove/flow-analyzer-com-communicatorflow-analyzer-com-communicatorThis lib exposes a Communicator to communicate with imtmedical gaz flow analyzers such as pf300 & citrex devices through serial port.
- PF300
- Citrex H4
npm install
``js
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