yaq/traits/has-measure-trigger


requires

is-sensor

configuration

Daemons with the has-measure-trigger trait expect the following configuration:

loop_at_startup (boolean)
If set to true, the daemon will begin to loop measure as soon as it starts.

messages

Daemons with the has-measure-trigger trait expose the following public messages:

measure ➜ int
Initiate a measurement. Returns integer, measurement ID.
parameters:

loop (boolean) default: False

stop_looping
Stop looping measurement.

get_measured ➜ {'type': 'map', 'values': ['float', 'ndarray']}
Get most recent measured value.
from is-sensor

get_channel_names ➜ {'type': 'array', 'items': 'string'}
Get current channel names.
from is-sensor

get_channel_shapes ➜ {'type': 'map', 'values': {'type': 'array', 'items': 'int'}}
Get current channel shapes. If list is empty, channel is scalar.
from is-sensor

get_channel_units ➜ {'type': 'map', 'values': ['null', 'string']}
Get current channel units.
from is-sensor

daemons

The following daemons implement the has-measure-trigger trait:

fake-triggered-sensor


built 2020-07-31 16:06:40                                      CC0: no copyright