Class MessageBase
Base class for any kind of message (command, response or data packet).
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Unosquare.Sparkfun.FingerprintModule
Syntax
public abstract class MessageBase
Constructors
MessageBase()
Initializes a new instance of the MessageBase class.
Declaration
protected MessageBase()
Properties
DeviceId
Gets the device identifier.
Declaration
protected byte[] DeviceId { get; }
Property Value
Type | Description |
---|---|
System.Byte[] |
Remarks
For current devices, default DeviceId is 0x0001, always fixed.
Payload
Gets or sets the byte payload (the byte array representation of the message).
Declaration
protected byte[] Payload { get; set; }
Property Value
Type | Description |
---|---|
System.Byte[] |
StartCode1
Gets or sets the first synchronization byte.
Declaration
protected byte StartCode1 { get; set; }
Property Value
Type | Description |
---|---|
System.Byte |
StartCode2
Gets or sets the second synchronization byte.
Declaration
protected byte StartCode2 { get; set; }
Property Value
Type | Description |
---|---|
System.Byte |