SerialPort
This package provides everything you need to start talking over your serialport. It provides a high level Stream Interface, auto detecting bindings, and a set of parser streams.
Most of the api is covered in the Stream Interface docs.
Historically this was the only package involved and it contained everything. Since version 7 the internals have been split into their own modules and be required separately allowing a user to only install what they require.
This allows for smaller installs and alternative interfaces, bindings and parsers.
SerialPort
#
This is the Stream Interface constructor. It comes pre-populated with Binding
and Parsers
SerialPort.Binding
#
This package includes the @serialport/bindings
package already attached to the stream interface.
SerialPort.parsers
#
Comes with the following parsers available for use.
These Parsers
are all Transform streams that process incoming data. To use the parsers, you must create them and then pipe the Serialport to the parser. Be careful to only write to the SerialPort object and not the parser.