![]() |
Roboid Control for C++
|
Message for communicating the URL for a model of the thing.
#include <ModelUrlMsg.h>
Public Member Functions | |
ModelUrlMsg (unsigned char networkId, Thing *thing) | |
Create a new message for sending. | |
ModelUrlMsg (const char *buffer) | |
Create a message for receiving. | |
virtual | ~ModelUrlMsg () |
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 = 0x90 |
The message ID. | |
static const unsigned char | length = 3 |
The length of the message without the URL string itself. | |
Passer::RoboidControl::ModelUrlMsg::ModelUrlMsg | ( | unsigned char | networkId, |
Thing * | thing | ||
) |
Create a new message for sending.
networkId | The network ID of the thing |
thing | The thing for which to send the mode URL |
Passer::RoboidControl::ModelUrlMsg::ModelUrlMsg | ( | 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.