Interface IAsciiCommand
- Namespace
- TechnologySolutions.Rfid.AsciiProtocol
- Assembly
- TechnologySolutions.Rfid.AsciiProtocol.Core.dll
Defines an ASCII command that can be performed on any device supporting the TSL ASCII 2.0 Protocol
public interface IAsciiCommand
Remarks
A TSLAsciiCommand can be executed using any object that implements the TSLAsciiCommandExecuting protocol. The command can be executed either asynchronously or synchronously (by setting synchronousCommandResponder prior to execution). Synchronous commands prevent the issue of subsequent commands until the command’s response has been received.
Properties
CommandName
Gets the ASCII command identifier. The period followed by two lower case characters that identify the command e.g. ‘.da’
string CommandName { get; }
Property Value
MaxSynchronousWait
Gets or sets the maximum time to wait for this command to complete when invoked synchronously
TimeSpan MaxSynchronousWait { get; set; }
Property Value
MaxSynchronousWaitTime
Gets or sets the maximum time in seconds to wait for this command to complete when invoked synchronously
double MaxSynchronousWaitTime { get; set; }
Property Value
Methods
CommandLine()
Returns the ASCII command line (including terminators) to be sent to the device to execute the command
string CommandLine()
Returns
- string
The ASCII command line to execute the command