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