yaq/traits/uses-uart


Device which communicates over a serial bus with a given baud rate (e.g. /dev/ttyACM0 on unix and COM3 on windows at 9600 baud)

requires

uses-serial

configuration

Daemons with the uses-uart trait expect the following configuration:

serial_port (string)

baud_rate (number)

methods

Daemons with the uses-uart trait expose the following public methods:

direct_serial_write
Expose direct access to the serial port to clients. This should not be encouraged for normal use, but may be very important for debugging. If a device is expected to return data, it should be logged at the INFO level, not returned to the client. This is done to allow long tasks to be run asynchronously, and to explicitly discourage use of this method except when debugging. Setting `busy` to true is encouraged, but individual daemon writers should consider their own use case.
from uses-serial
Arguments:

message, {'type': 'string'}

daemons

The following daemons implement the uses-uart trait:

ne1000
wright-wl-motor