![]() |
Roboid Control for C++
|
A message containing binary data for custom communication.
#include <BinaryMsg.h>
Public Member Functions | |
BinaryMsg (unsigned char networkId, Thing *thing) | |
Create a BinaryMsg. | |
BinaryMsg (char *buffer) | |
virtual | ~BinaryMsg () |
Destructor for the message. | |
virtual unsigned char | Serialize (char *buffer) override |
Serialize the message into a byte array for sending. | |
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. | |
unsigned char | dataLength |
char * | data = nullptr |
The binary data which is communicated. | |
RoboidControl::BinaryMsg::BinaryMsg | ( | unsigned char | networkId, |
Thing * | thing | ||
) |
Create a BinaryMsg.
networkId | The network ID of the thing |
thing | The thing for which binary data is sent |
RoboidControl::BinaryMsg::BinaryMsg | ( | char * | buffer | ) |
|
overridevirtual |
Serialize the message into a byte array for sending.
buffer | The buffer to serilize into |
Reimplemented from RoboidControl::IMessage.