![]() |
Roboid Control for C# 0.4
|
A message containing binary data for custom communication.
Public Member Functions | |
| BinaryMsg (Thing thing) | |
| Create an empty message for sending. | |
| 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 | ( | Thing | thing | ) |
Create an empty message for sending.
| thingId | The thing sending the binary message |
| RoboidControl.BinaryMsg.BinaryMsg | ( | byte | networkId, |
| Thing | thing | ||
| ) |
Create an empty message for sending.
| networkId | The network ID of the thing |
| thingId | The thing sending the binary message |
| 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.