![]() |
Roboid Control for C++
|
Message for sending generic text.
#include <TextMsg.h>
Public Member Functions | |
TextMsg (const char *text, unsigned char textLength) | |
Create a new message for sending. | |
TextMsg (char *buffer) | |
Create a message for receiving. | |
virtual | ~TextMsg () |
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 = 0xB0 |
The message ID. | |
static const unsigned char | length = 2 |
The length of the message without the text itself. | |
Passer::RoboidControl::TextMsg::TextMsg | ( | const char * | text, |
unsigned char | textLength | ||
) |
Create a new message for sending.
text | The text |
Passer::RoboidControl::TextMsg::TextMsg | ( | 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.