![]() |
Roboid Control for C#
|
Message providing generic information about a Thing.
Public Member Functions | |
ThingMsg (byte networkId, Thing thing) | |
Create a message for sending. | |
ThingMsg (byte networkId, byte thingId, byte thingType, byte parentId) | |
Create a message for sending. | |
ThingMsg (byte[] buffer) | |
Create a message for receiving. | |
override byte | Serialize (ref byte[] buffer) |
Serialize the message into a byte array. | |
Static Public Attributes | |
const byte | id = 0x80 |
The message ID. | |
const byte | length = 5 |
The length of the message. | |
Passer.RoboidControl.ThingMsg.ThingMsg | ( | byte | networkId, |
Thing | thing | ||
) |
Create a message for sending.
networkId | The network ID of the thing |
thing | The thing |
Passer.RoboidControl.ThingMsg.ThingMsg | ( | byte | networkId, |
byte | thingId, | ||
byte | thingType, | ||
byte | parentId | ||
) |
Create a message for sending.
networkId | The network ID of the thing |
thingId | The ID of the thing |
thingType | The type of thing |
parentId | The parent of the thing |
Passer.RoboidControl.ThingMsg.ThingMsg | ( | byte[] | buffer | ) |
Create a message for receiving.
buffer | The byte array to parse |
|
virtual |
Serialize the message into a byte array.
buffer | The buffer to serialize into |
Reimplemented from Passer.RoboidControl.IMessage.