Constructor
new Serial()
Creates an instance of Serial.
Methods
(async) begin(bropt)
Request to open serial port
Parameters:Name | Type | Attributes | Default | Description |
---|
br | int | <optional>
| 9600 | br - baud rate |
(async) close()
gotByte(value)
This method is called when a single value is received.
Parameters:Name | Type | Description |
---|
value | int | |
gotBytes(values)
This method is called when multiple values are received.
Parameters:Name | Type | Description |
---|
values | array | |
gotCSV(array)
This method is called when a CSV string is received.
Parameters:Name | Type | Description |
---|
array | array | |
(async) print(values)
Parameters:Name | Type | Description |
---|
values | string | |
(async) println(values)
Parameters:Name | Type | Description |
---|
values | string | |
(async) write(value)
Parameters:Name | Type | Description |
---|
value | int | |
(async) writeByte(value)
Parameters:Name | Type | Description |
---|
value | int | |