1 #ifndef REMOTE_PROTOCOLS_HOST_SERVER_MSGHOSTCONFIRM_H
2 #define REMOTE_PROTOCOLS_HOST_SERVER_MSGHOSTCONFIRM_H
4 #include "protocols/BaseMsg.h"
5 #include "protocols/MsgPayload.h"
6 #include "protocols/host_server/MsgMoteAddresses.h"
8 namespace remote
{ namespace protocols
{ namespace host_server
{
10 enum MSGHOSTCONFIRM_STATUS
{
12 MSGHOSTCONFIRM_UNKNOWN_MOTE
15 class MsgHostConfirm
: public BaseMsg
18 MsgHostConfirm(uint8_t status
, MsgMoteAddresses
& adressess
, MsgPayload
& message
);
19 MsgHostConfirm(uint8_t*& buffer
, uint32_t& buflen
);
23 uint8_t* write(uint8_t* buffer
, uint32_t& buflen
);
27 MsgMoteAddresses
& getMoteAddresses();
28 MsgPayload
& getMessage();
31 uint8_t* read(uint8_t* buffer
, uint32_t& buflen
);
33 MsgMoteAddresses
* addresses
;