![]() |
Roboid Control for C#
|
A message containing binary data for custom communication.
Public Member Functions | |
BinaryMsg (byte networkId, Thing thing) | |
Create an empty message for sending. | |
BinaryMsg (byte[] buffer) | |
override byte | Serialize (ref byte[] buffer) |
Public Attributes | |
byte | networkId |
The network ID identifying the thing. | |
byte | thingId |
The ID of the thing. | |
Thing | thing |
byte | dataLength |
The length of the data. | |
byte[] | data |
The binary data. | |
Static Public Attributes | |
const byte | Id = 0xB1 |
The message ID. | |
const byte | length = 4 |
The length of the message in bytes, excluding the binary data. | |
RoboidControl.BinaryMsg.BinaryMsg | ( | byte | networkId, |
Thing | thing | ||
) |
Create an empty message for sending.
networkId | The netowork ID of the thing |
thingId | The ID of the thing |
RoboidControl.BinaryMsg.BinaryMsg | ( | byte[] | buffer | ) |
|
virtual |
Reimplemented from RoboidControl.IMessage.
|
static |
The length of the message in bytes, excluding the binary data.
For the total size of the message this.bytes.Length should be added to this value.