Click or drag to resize

SensorSetState Method

Sets the sensor's OnOff value.

Namespace:  RRAutoLib.CTC
Assembly:  RRAutoLib (in RRAutoLib.dll) Version: 4.0.8678.28884
Syntax
Public Function SetState ( 
	enuState As OnOff,
	Optional sctCancelToken As CancellationToken = Nothing
) As Task

Parameters

enuState
Type: RRAutoLib.LoconetOnOff
The new state to be assigned.
sctCancelToken (Optional)
Type: System.ThreadingCancellationToken
Token provided by a controlling source to notify this method that it should cancel its execution.

Return Value

Type: Task
Remarks
The CtcService must be started otherwise a CtcIsStoppedException will be thrown.
See Also