Roboid Control for C++
Loading...
Searching...
No Matches
InvestigateMsg.h
1#include "Messages.h"
2
3namespace Passer {
4namespace RoboidControl {
5
7class InvestigateMsg : public IMessage {
8 public:
10 static const unsigned char id = 0x81;
12 static const unsigned char length = 3;
14 unsigned char networkId;
16 unsigned char thingId;
17
21 InvestigateMsg(unsigned char networkId, unsigned char thingId);
23 InvestigateMsg(char* buffer);
25 virtual ~InvestigateMsg();
26
28 virtual unsigned char Serialize(char* buffer) override;
29};
30
31} // namespace RoboidControl
32} // namespace Passer
Root structure for all communcation messages.
Definition Messages.h:12
Message to request details for a Thing.
Definition InvestigateMsg.h:7
virtual ~InvestigateMsg()
Destructor for the message.
Definition InvestigateMsg.cpp:14
virtual unsigned char Serialize(char *buffer) override
Serialize the message into a byte array for sending.
Definition InvestigateMsg.cpp:15
unsigned char thingId
the ID of the thing
Definition InvestigateMsg.h:16
static const unsigned char length
The length of the message.
Definition InvestigateMsg.h:12
unsigned char networkId
The network ID of the thing.
Definition InvestigateMsg.h:14