SequenceNumber Property
SequenceNumber
The configuration sequence number, used to see if the OTP configuration has been modified.
C#
public byte SequenceNumber { get; set; }
Property Value
Type | Description |
---|---|
System.Byte |
Remarks
Operations that modify the OTP configuration, such as programming a slot or NDEF, will result in the sequence number being incremented. In cases where the command class is partnered with the ReadStatusResponse class, the sequence number must be compared with its prior value. If the sequence number has incremented, the configuration has been applied. If it hasn't, then there was some issue encountered when trying to apply the configuration.
The sequence number is only internally consistent for as long as the device is powered. That is, if the YubiKey is unplugged or otherwise loses power, the sequence number will reset its value to `1`.Note that the sequence number may be `0` if no valid configurations are present within the OTP application.