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