PDComm.Secs1Message
Class
A SECS-I message: block header identity plus the message body.
public sealed record Secs1MessageParameters
| Name | Description |
|---|---|
DeviceId | The device ID (0 to 32767). |
Direction | The direction bit of the message. |
Stream | The SECS-II stream number (0 to 127). |
Function | The SECS-II function number. |
ReplyExpected | Whether the W bit is set, meaning the sender expects a reply. |
SystemBytes | The system bytes (transaction ID); the application chooses them for its own messages. |
Body | The message text, normally one encoded SECS-II item; split into blocks of up to 244 bytes on the wire. May be empty. |
Members
Secs1Message
Constructor
A SECS-I message: block header identity plus the message body.
public Secs1Message(ushort DeviceId, Secs1Direction Direction, byte Stream, byte Function, bool ReplyExpected, uint SystemBytes, ReadOnlyMemory<byte> Body)Parameters
| Name | Description |
|---|---|
DeviceId | The device ID (0 to 32767). |
Direction | The direction bit of the message. |
Stream | The SECS-II stream number (0 to 127). |
Function | The SECS-II function number. |
ReplyExpected | Whether the W bit is set, meaning the sender expects a reply. |
SystemBytes | The system bytes (transaction ID); the application chooses them for its own messages. |
Body | The message text, normally one encoded SECS-II item; split into blocks of up to 244 bytes on the wire. May be empty. |
Body
Property
The message text, normally one encoded SECS-II item; split into blocks of up to 244 bytes on the wire. May be empty.
public ReadOnlyMemory<byte> Body { get; init; }DeviceId
Property
The device ID (0 to 32767).
public ushort DeviceId { get; init; }Direction
Property
The direction bit of the message.
public Secs1Direction Direction { get; init; }Function
Property
The SECS-II function number.
public byte Function { get; init; }ReplyExpected
Property
Whether the W bit is set, meaning the sender expects a reply.
public bool ReplyExpected { get; init; }Stream
Property
The SECS-II stream number (0 to 127).
public byte Stream { get; init; }SystemBytes
Property
The system bytes (transaction ID); the application chooses them for its own messages.
public uint SystemBytes { get; init; }