SerialBridge

src/index.js

Class creating a new serial bridge to manage serial ports.

new SerialBridge(options: object)

Extends EventEmitter

Parameters
options (object = {})
Name Description
options.portFilter function (default (port)=>port.manufacturer==='SparkFun'&&port.productId) Filter the serial ports to address.
options.baudRate number (default 57200) Baud rate
options.interCommandDelay number (default 100) Time to wait between commands in [ms]
options.defaultCommandExpirationDelay number (default 100) Time to wait for answer before timeout
Instance Members
continuousUpdateDevices(options)
getDevicesList(options)
sendCommand(id, command)
updateDevices()