![]() |
Roboid Control for C++
|
Message to send thing-specific data.
#include <BinaryMsg.h>
Inherits RoboidControl::IMessage.
Public Member Functions | |
BinaryMsg (unsigned char networkId, Thing *thing) | |
Create a new message for sending. | |
BinaryMsg (char *buffer) | |
virtual | ~BinaryMsg () |
Destructor for the message. | |
virtual unsigned char | Serialize (char *buffer) override |
Static Public Member Functions | |
static unsigned char * | ReceiveMsg (unsigned char packetSize) |
Public Attributes | |
unsigned char | networkId |
The network ID of the thing. | |
unsigned char | thingId |
The ID of the thing. | |
Thing * | thing |
The thing for which the binary data is communicated. | |
char * | bytes = nullptr |
The binary data which is communicated. | |
Static Public Attributes | |
static const unsigned char | id = 0xB1 |
The message ID. | |
static const unsigned | length = 3 |
The length of the message without the binary data itslef. | |
RoboidControl::BinaryMsg::BinaryMsg | ( | unsigned char | networkId, |
Thing * | thing | ||
) |
Create a new message for sending.
networkId | The network ID of the thing |
thing | The thing for which binary data is sent |
RoboidControl::BinaryMsg::BinaryMsg | ( | char * | buffer | ) |
|
overridevirtual |