Gets value indicating if this packet expects a response packet.
Namespace: RRAutoLib.LoconetAssembly: RRAutoLib (in RRAutoLib.dll) Version: 1.4.4504.18867
Syntax
| C# |
|---|
public virtual bool NeedsPacketResponse { get; } |
| Visual Basic |
|---|
Public Overridable ReadOnly Property NeedsPacketResponse As Boolean Get |
Field Value
True if the packet expects a response, otherwise False.
Remarks
This function is called internally during the Loconet read phase to match response packets to transmitted packets waiting for a response. The base implementation gets this value from one of the bits in the first packet byte (as per spec). This is appropriate for most packet types, however some packets may deviate from this default behavior. For those, this property must be overridden.If this property returns True, ValidPacketResponse(Packet) should be overridden in derived classes.