Roboid Control for C++
Loading...
Searching...
No Matches
Messages
BinaryMsg.h
1
#pragma once
2
3
#include "Messages.h"
4
5
namespace
Passer {
6
namespace
RoboidControl {
7
8
class
BinaryMsg :
public
IMessage {
9
public
:
10
static
const
unsigned
char
id
= 0xB1;
11
static
const
unsigned
length = 3;
12
13
unsigned
char
networkId;
14
unsigned
char
thingId;
15
Thing *thing;
16
17
unsigned
char
bytesSize;
18
char
*bytes =
nullptr
;
19
20
BinaryMsg(
char
*buffer);
21
BinaryMsg(
unsigned
char
networkId, Thing *thing);
22
virtual
~BinaryMsg();
23
24
virtual
unsigned
char
Serialize(
char
*buffer)
override
;
25
26
static
BinaryMsg Receive(
char
*buffer,
unsigned
char
bufferSize);
27
};
28
29
}
// namespace RoboidControl
30
}
// namespace Passer
Generated by
1.9.8