Command |
public class CommandProtocol
The CommandProtocol type exposes the following members.
| Name | Description | |
|---|---|---|
| CommandProtocol | The constructor. |
| Name | Description | |
|---|---|---|
| Checksum | The checksum. This is a 1-byte value. | |
| CommandType | The command type. This is a 1-byte value. | |
| EndByte | The end byte. This is a 1-byte value. | |
| IsHandled | Flag to signal if a message has been processed by a receiver or not. | |
| Length | The length of the command in bytes. This is a 1-byte value. | |
| MessageID | The command ID. This is a 2-byte value. | |
| OpCode | The op code. This is a 2-byte value. | |
| Parameters | The parameters. The length is a variable, which is the total length of the command - 7 bytes. | |
| StartByte | The start byte. This is a 2-byte value. |
| Name | Description | |
|---|---|---|
| GetLaserStateMessage | Analyzes the command's parameters and returns the corresponding laser state as text. | |
| ToBytes | Returns the original command, in bytes. |