Sends a broadcast messages to all LocoIO devices seen on the network.
Namespace: RRAutoLib.LoconetAssembly: RRAutoLib (in RRAutoLib.dll) Version: 1.4.4504.18867
Syntax
| C# |
|---|
public static void BroadcastAddress( LoconetService objLoconetService, byte bytLocoIOAdr, byte bytLocoIOSubAdr ) |
| Visual Basic |
|---|
Public Shared Sub BroadcastAddress ( _ objLoconetService As LoconetService, _ bytLocoIOAdr As Byte, _ bytLocoIOSubAdr As Byte _ ) |
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.
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.