yaq/traits/uses-serial


Daemons with this trait use some kind of serial communication.

methods

Daemons with the uses-serial 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.
Arguments:

message, {'type': 'string'}

daemons

The following daemons implement the uses-serial trait:

adafruit-stepper-motor-hat (from uses-i2c)
ads1115 (from uses-i2c)
mcp3428 (from uses-i2c)
mcp9600 (from uses-i2c)
ne1000 (from uses-uart)
wright-wl-motor (from uses-uart)