6namespace RoboidControl {
12 static const unsigned char id = 0x91;
14 static const unsigned char length = 4;
34 virtual unsigned char Serialize(
char* buffer)
override;
Root structure for all communcation messages.
Definition IMessage.h:6
Message for communicating the name of a thing.
Definition NameMsg.h:9
unsigned char thingId
The ID of the thing.
Definition NameMsg.h:18
virtual ~NameMsg()
Destructor for the message.
Definition NameMsg.cpp:38
unsigned char nameLength
The length of the name, excluding the null terminator.
Definition NameMsg.h:20
static const unsigned char length
The length of the message.
Definition NameMsg.h:14
const char * name
The name of the thing, not terminated with a null character.
Definition NameMsg.h:22
virtual unsigned char Serialize(char *buffer) override
Serialize the message into a byte array for sending.
Definition NameMsg.cpp:42
unsigned char networkId
The network ID of the thing.
Definition NameMsg.h:16
A thing is the primitive building block.
Definition Thing.h:20