Deletes a virtual port.
Reads information about a given mode for a given port (e.g. mode name ('absolutePosition', 'speed', etc.)) Stream completes when the response is received from the hub.
Reads port modes and capabilities for a given port. Stream completes when the response is received from the hub.
Reads raw port value for a given port and mode id. Stream completes when the response is received from the hub.
The port id to read the value for.
The mode id to read the value for.
Optional
transformer: TTransformerOptional transformer to convert the raw value into a value that can be used by the application (or read by humans).
Emits when an io device is attached to a port. If portId is not specified, it will emit for all ports. Events are cached, so if you subscribe after an io device is attached, you will still get the event.
Optional
filterOptions: OnIoAttachFilterOptional filter options. If not specified, all events will be emitted. Port id may be specified to filter by port.
Optional
filterOptions: numberEmits when an io device is detached from a port. If portId is not specified, it will emit for all ports.
Optional
filterOptions: OnIoDetachFilterOptional filter options. If not specified, all events will be emitted. Port id may be specified to filter by port.
Optional
filterOptions: numberProvides port value updates for a given port and mode id.
The port id to read the value for.
The mode id to read the value for.
If the difference between the current value and the previous value is less than this threshold, the value will not be emitted.
Optional
transformer: TTransformerOptional transformer to convert the raw value into a value that can be used by the application (or read by humans).
Creates a virtual port that merges two physical ports. Virtual ports can be used to control two motors in a synchronized way.