Serialport for NoFlo
npm install noflo-serialportnpm
serialport/Open node and configure the port parameters. The output of the component is a serialport object
serialport/Write and a serialport/Read nodes. The serialport input must be connected to the output of the serialport/Open node
string` | Serialport object
InPort | stop | `bang` | Signal to close the serial port
OutPort | error | `string` | Message if an error occurs
$3
Sends a message if an error occurs
Port | Name | Datatype | Description
-----|------|----------|-------------
InPort | serialport | `string` | Serialport object
OutPort | error | `string` | Message if an error occurs
$3
Opens the serial port
Port | Name | Datatype | Description
-----|------|----------|-------------
InPort | port | `string` | Port name or path
InPort | baudrate | `number` | Baud Rate, defaults to 9600
InPort | databits | `number` | Data Bits, defaults to 8. Must be one of: 5, 6, 7, or 8
InPort | stopbits | `number` | Stop Bits, defaults to 1. Must be one of: 1 or 2
InPort | parity | `string` | Parity, defaults to 'none'. Must be one of: 'none', 'even', 'mark', 'odd', 'space'
InPort | buffersize | `number` | Size of read buffer, defaults to 255. Must be an integer value
InPort | parser | `string` | The parser engine to use with read data, defaults to 'raw'
OutPort | out | `string` | Serialport object
$3
Reads the serial port
Port | Name | Datatype | Description
-----|------|----------|-------------
InPort | serialport | `string` | Serialport object
OutPort | out | `object` | Message. New data from the Serial Port
$3
Writes data to the serial port
Port | Name | Datatype | Description
-----|------|----------|-------------
InPort | serialport | `string` | Serialport object
InPort | message | `string` | Message. New data to the Serial Port
InPort | drain | `boolean` | Waits until all output data has been transmitted
InPort | start | `bang`` | Signal to write the message to the serial port