87 var sb =
new StringBuilder();
88 sb.AppendLine($
" Reader #: {ReaderNumber}");
89 sb.AppendLine($
"Tone Code: {ToneCode}");
90 sb.AppendLine($
" On Time: {OnTime}");
91 sb.AppendLine($
" Off Time: {OffTime}");
92 sb.AppendLine($
" Count: {Count}");
102 [Obsolete(
"This no tone code is obsolete.",
false)]
103#pragma warning disable CS1591
105#pragma warning restore CS1591
Contains standard Security Control Block data that can be used when building messages.
Base class representing a payload of a PD command message.
byte OffTime
Gets the off time in units of 100ms.
override string ToString()
override byte[] BuildData()
byte ReaderNumber
Gets the reader number starting at 0.
byte Count
Gets the number of times to repeat the on/off cycle.
override ReadOnlySpan< byte > SecurityControlBlock()
ToneCode ToneCode
Gets the tone code.
override CommandType CommandType
ReaderBuzzerControl(byte readerNumber, ToneCode toneCode, byte onTime, byte offTime, byte count)
Initializes a new instance of the ReaderBuzzerControl class.
static ReaderBuzzerControl ParseData(ReadOnlySpan< byte > data)
Parses the message payload bytes.
byte OnTime
Gets the on time in units of 100ms.
ToneCode
Tone codes values.
@ Default
Turn on the default tone.