Roboid Control for C++
Loading...
Searching...
No Matches
SiteMsg.h
1#include "Messages.h"
2
3namespace RoboidControl {
4
6class SiteMsg : public IMessage {
7public:
9 static const unsigned char id = 0xA1;
11 static const unsigned char length = 2;
13 unsigned char networkId;
14
17 SiteMsg(unsigned char networkId);
19 SiteMsg(const char *buffer);
21 virtual ~SiteMsg();
22
24 virtual unsigned char Serialize(char *buffer) override;
25};
26
27} // namespace Control
A message communicating the network ID for that participant.
Definition SiteMsg.h:6
static const unsigned char length
The length of the message.
Definition SiteMsg.h:11
virtual ~SiteMsg()
Destructor for the message.
Definition SiteMsg.cpp:13
virtual unsigned char Serialize(char *buffer) override
Definition SiteMsg.cpp:15
unsigned char networkId
The network ID for the participant.
Definition SiteMsg.h:13