Sends a message to a LocoIO device requesting configuration data.

Namespace: RRAutoLib.Loconet
Assembly: RRAutoLib (in RRAutoLib.dll) Version: 1.4.4504.18867

Syntax

C#
public static void RequestConfig(
	LoconetService objLoconetService,
	byte bytLocoIOAdr,
	byte bytLocoIOSubAdr,
	byte bytPort,
	Packet..::..CallBack objCallbackOnResponse
)
Visual Basic
Public Shared Sub RequestConfig ( _
	objLoconetService As LoconetService, _
	bytLocoIOAdr As Byte, _
	bytLocoIOSubAdr As Byte, _
	bytPort As Byte, _
	objCallbackOnResponse As Packet..::..CallBack _
)

Parameters

objLoconetService
Type: RRAutoLib.Loconet..::..LoconetService
A LoconetService instance that will service the command.
bytLocoIOAdr
Type: System..::..Byte
LocoIO address to be assigned. Valid values are 1-79 and 81-127 with a default of 81. 80 is reserved for the PC.
bytLocoIOSubAdr
Type: System..::..Byte
LocoIO sub-address to be assigned. Valid values are 1-126 with a default of 1.
bytPort
Type: System..::..Byte
LocoIO port number (1-16) being interogated.
objCallbackOnResponse
Type: RRAutoLib.Loconet..::..Packet..::..CallBack
Can be null/Nothing or a Packet..::..CallBack object.

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 a PkLocoIO..::..PortConfig instance.

See Also