Roboid Control for C++
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
RoboidControl::SiteMsg Class Reference

Detailed Description

A message communicating the network ID for that participant.

#include <SiteMsg.h>

Inherits RoboidControl::IMessage.

Public Member Functions

 SiteMsg (unsigned char networkId)
 Create a new message for sending.
 
 SiteMsg (const char *buffer)
 
virtual ~SiteMsg ()
 Destructor for the message.
 
virtual unsigned char Serialize (char *buffer) override
 

Static Public Member Functions

static unsigned char * ReceiveMsg (unsigned char packetSize)
 

Public Attributes

unsigned char networkId
 The network ID for the participant.
 

Static Public Attributes

static const unsigned char id = 0xA1
 The message ID.
 
static const unsigned char length = 2
 The length of the message.
 

Constructor & Destructor Documentation

◆ SiteMsg() [1/2]

RoboidControl::SiteMsg::SiteMsg ( unsigned char  networkId)

Create a new message for sending.

Parameters
networkIdThe network ID for the participant

◆ SiteMsg() [2/2]

RoboidControl::SiteMsg::SiteMsg ( const char *  buffer)

Member Function Documentation

◆ Serialize()

unsigned char RoboidControl::SiteMsg::Serialize ( char *  buffer)
overridevirtual