Click or drag to resize

PkLocoIOBroadcastAddress Method

Sends a broadcast messages to all LocoIO devices seen on the network.

Namespace:  RRAutoLib.Loconet
Assembly:  RRAutoLib (in RRAutoLib.dll) Version: 4.0.8678.28884
Syntax
Public Shared Sub BroadcastAddress ( 
	objLoconetService As LoconetService,
	bytLocoIOAdr As Byte,
	bytLocoIOSubAdr As Byte
)

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.
bytLocoIOSubAdr
Type: SystemByte
LocoIO sub-address to be assigned. Valid values are 1-126 with a default of 1.
Remarks
This is used to initially assign an address and sub-address to a LocoIO device. For all other communications, it's this address and sub-address combination that will uniquely identify the LocoIO device. Make sure only one LocoIO device is connected to the network when performing this action. The LocoIO device being written will respond with a PkPeerXfer packet as a write confirmation.
See Also