![]() |
Roboid Control for C++ 0.4
|
A Message notifiying that a Thing no longer exists.
#include <DestroyMsg.h>
Public Member Functions | |
| DestroyMsg (unsigned char networkId, Thing *thing) | |
| Create a message for sending. | |
| DestroyMsg (char *buffer) | |
| virtual | ~DestroyMsg () |
| 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. | |
Static Public Attributes | |
| static const unsigned char | id = 0x20 |
| The message ID. | |
| static const unsigned | length = 3 |
| The length of the message in bytes. | |
| RoboidControl::DestroyMsg::DestroyMsg | ( | unsigned char | networkId, |
| Thing * | thing | ||
| ) |
Create a message for sending.
| networkId | The network ID of the thing |
| thing | The ID of the thing |
| RoboidControl::DestroyMsg::DestroyMsg | ( | char * | buffer | ) |
|
overridevirtual |
Serialize the message into a byte array for sending.
| buffer | The buffer to serilize into |
Reimplemented from RoboidControl::IMessage.