Class CANMessageContent
- Namespace
- Geotab.Checkmate.ObjectModel
- Assembly
- Geotab.Checkmate.ObjectModel.dll
The contents of a TextMessage containing data to give to a device connected to a CAN-IOX.
The CANMessageContent is a 'dumb pipe' type of message. Whatever data is put in the data property will be delivered, as is, to the system on the other end of the device connected to a CAN-IOX.
public class CANMessageContent : DataToComponentContent, IBinaryPayload
- Inheritance
-
CANMessageContent
- Implements
- Inherited Members
Constructors
CANMessageContent()
Initializes a new instance of the CANMessageContent class.
public CANMessageContent()
CANMessageContent(int, int, bool, byte[]?)
Initializes a new instance of the CANMessageContent class.
public CANMessageContent(int channel, int arbitrationId, bool extendedFrameFlag, byte[]? data)
Parameters
channel
intThe channel.
arbitrationId
intThe arbitration Id.
extendedFrameFlag
boolThe extended frame flag.
data
byte[]The data.
Properties
ArbitrationId
Gets or sets the ArbitrationId. Length is 4 bytes.
public int ArbitrationId { get; set; }
Property Value
- int
The ArbitrationId. Length is 4 bytes.
Channel
Gets or sets the channel the IoxAddOn is communicating over. 0 means the Add-On is not attached.
public int Channel { get; set; }
Property Value
Data
Gets or sets the data. Up to 8 bytes can be sent.
public byte[]? Data { get; set; }
Property Value
- byte[]
byte buffer.
ExtendedFrameFlag
Gets or sets a value indicating whether ExtendedFrameFlag is enabled.
public bool ExtendedFrameFlag { get; set; }
Property Value
Methods
Clone()
Create a copy.
public override IBinaryPayload Clone()
Returns
- IBinaryPayload
The cloned instance.
GetData()
Gets the data for the payload.
protected override byte[] GetData()
Returns
- byte[]
The data.