6namespace RoboidControl {
12 static const unsigned char id = 0xB1;
24 unsigned char dataLength;
38 virtual unsigned char Serialize(
char* buffer)
override;
A message containing binary data for custom communication.
Definition BinaryMsg.h:9
virtual unsigned char Serialize(char *buffer) override
Serialize the message into a byte array for sending.
Definition BinaryMsg.cpp:29
virtual ~BinaryMsg()
Destructor for the message.
Definition BinaryMsg.cpp:25
unsigned char thingId
The ID of the thing.
Definition BinaryMsg.h:20
static const unsigned length
The length of the message in bytes, excluding the binary data For the total size of the message this....
Definition BinaryMsg.h:15
char * data
The binary data which is communicated.
Definition BinaryMsg.h:26
Thing * thing
The thing for which the binary data is communicated.
Definition BinaryMsg.h:22
unsigned char networkId
The network ID of the thing.
Definition BinaryMsg.h:18
Root structure for all communcation messages.
Definition IMessage.h:6
A thing is the primitive building block.
Definition Thing.h:20