Table of Contents

Class AsciiTransponderResponder

Namespace
TechnologySolutions.Rfid.AsciiProtocol
Assembly
TechnologySolutions.Rfid.AsciiProtocol.Core.dll

Extends the AsciiResponder to also capture a list of transponder responses

public class AsciiTransponderResponder : AsciiResponder, IAsciiCommandSynchronousResponder, IAsciiCommandResponder, IAsciiResponseResponder, IAsciiResponse, IAsciiResponder
Inheritance
AsciiTransponderResponder
Implements
Inherited Members
Extension Methods

Constructors

AsciiTransponderResponder()

Initializes a new instance of the AsciiTransponderResponder class

public AsciiTransponderResponder()

Properties

TransponderReceived

Gets or sets the action to call for each transponder received

public Action<TransponderData, bool> TransponderReceived { get; set; }

Property Value

Action<TransponderData, bool>

Remarks

TransponderData - The transponder received. bool - True if more transponders are queued to follow

Transponders

Gets the list of transponders reported

public IEnumerable<TransponderData> Transponders { get; }

Property Value

IEnumerable<TransponderData>

Remarks

The list is cleared each time a new command starts (matching CS: received)

Methods

ClearLastResponse()

Clears the response ready to receive a new one

public override void ClearLastResponse()

OnProcessReceivedLine(IAsciiResponseLine, bool)

Each correctly terminated line from the device is passed to this method for processing

protected override bool OnProcessReceivedLine(IAsciiResponseLine line, bool moreToFollow)

Parameters

line IAsciiResponseLine

The line to be processed

moreToFollow bool

When true indicates there are additional lines to be processed (and will also be passed to this method)

Returns

bool

True if this line should not be passed to any other responder