Click or drag to resize

PkLocoIORequestStates Method

Sends a message to a LocoIO device requesting states data.

Namespace:  RRAutoLib.Loconet
Assembly:  RRAutoLib (in RRAutoLib.dll) Version: 4.0.8678.28884
Syntax
Public Shared Function RequestStates ( 
	objLoconetService As LoconetService,
	bytLocoIOAdr As Byte
) As Task(Of PkLocoIO)

Parameters

objLoconetService
Type: RRAutoLib.LoconetLoconetService
A LoconetService instance that will service the command.
bytLocoIOAdr
Type: SystemByte
LocoIO address to be assigned. Valid values are 1-79 and 81-127 with a default of 81. 80 is reserved for the PC.

Return Value

Type: TaskPkLocoIO
The response packet.
Remarks
The interogated LocoIO device will respond with a PkPeerXfer packet which can be cast into a PkLocoIO from which the Read method can be used to retieve an Boolean array of states.
See Also