![]() |
Roboid Control for C++
|
Message for communicating the name of a thing.
#include <NameMsg.h>
Public Member Functions | |
NameMsg (unsigned char networkId, Thing *thing) | |
Create a new message for sending. | |
NameMsg (const char *buffer) | |
Create a message for receiving. | |
virtual | ~NameMsg () |
Destructor for the message. | |
virtual unsigned char | Serialize (char *buffer) override |
Serialize the message into a byte array for sending. | |
Static Public Attributes | |
static const unsigned char | id = 0x91 |
The message ID. | |
static const unsigned char | length = 4 |
The length of the message. | |
Passer::RoboidControl::NameMsg::NameMsg | ( | unsigned char | networkId, |
Thing * | thing | ||
) |
Create a new message for sending.
networkId | The network ID of the thing |
thing | The ID of the thing |
Passer::RoboidControl::NameMsg::NameMsg | ( | const char * | buffer | ) |
Create a message for receiving.
buffer | The byte array to parse |
|
overridevirtual |
Serialize the message into a byte array for sending.
buffer | The buffer to serilize into |
Reimplemented from Passer::RoboidControl::IMessage.