47 m_MultiChannel = 0x01,
48 m_MultiInstance = 0x02,
51 Msg(
string const& _logtext,
uint8 _targetNodeId,
uint8 const _msgType,
uint8 const _function,
bool const _bCallbackRequired,
bool const _bReplyRequired =
true,
uint8 const _expectedReply = 0,
uint8 const _expectedCommandClassId = 0 );
56 void Append(
uint8 const _data );
58 void UpdateCallbackId();
110 string GetAsString();
120 return( m_bFinal && (m_length==11) && (m_buffer[3]==0x13) && (m_buffer[6]==0x84) && (m_buffer[7]==0x08) );
124 return( m_bFinal && (m_length==11) && (m_buffer[3]==0x13) && (m_buffer[6]==0x00) && (m_buffer[7]==0x00) );
127 bool operator == (
Msg const& _other )
const
129 if( m_bFinal && _other.m_bFinal )
132 uint8 length = m_length - (m_bCallbackRequired ? 2: 1 );
133 return( !memcmp( m_buffer, _other.m_buffer, length ) );
139 if (m_buffer[3] == 0x13) {
151 bool m_bCallbackRequired;
154 uint8 m_expectedReply;
155 uint8 m_expectedCommandClassId;
159 uint8 m_targetNodeId;
160 uint8 m_sendAttempts;
161 uint8 m_maxSendAttempts;
167 static uint8 s_nextCallbackId;
Message object to be passed to and from devices on the Z-Wave network.
Definition: Msg.h:42
Definition: Bitfield.h:34
uint8 GetCallbackId() const
Identifies the Callback ID (if any) for this message. Callback ID is a value (OpenZWave uses sequenti...
Definition: Msg.h:71
#define OPENZWAVE_EXPORT
Definition: Defs.h:51
#define MAX_MAX_TRIES
Definition: Defs.h:178
uint8 GetExpectedReply() const
Identifies the expected reply type (if any) for this message. The expected reply is a function code...
Definition: Msg.h:81
bool IsWakeUpNoMoreInformationCommand()
Definition: Msg.h:118
uint8 GetTargetNodeId() const
Identifies the Node ID of the "target" node (if any) for this function.
Definition: Msg.h:64
Base class for all Z-Wave command classes.
Definition: CommandClass.h:46
uint8 * GetBuffer()
Definition: Msg.h:109
string GetLogText() const
For messages that request a Report for a specified command class, identifies the expected Index for t...
Definition: Msg.h:106
uint8 GetExpectedInstance() const
For messages that request a Report for a specified command class, identifies the expected Instance fo...
Definition: Msg.h:94
~Msg()
Definition: Msg.h:52
unsigned int uint32
Definition: Defs.h:69
bool IsNoOperation()
Definition: Msg.h:122
uint8 GetSendingCommandClass()
Definition: Msg.h:138
void SetSendAttempts(uint8 _count)
Definition: Msg.h:113
uint8 GetSendAttempts() const
Definition: Msg.h:112
uint8 GetExpectedCommandClassId() const
Identifies the expected Command Class ID (if any) for this message.
Definition: Msg.h:87
uint8 GetMaxSendAttempts() const
Definition: Msg.h:115
void SetMaxSendAttempts(uint8 _count)
Definition: Msg.h:116
uint32 GetLength() const
Definition: Msg.h:108
MessageFlags
Definition: Msg.h:45
unsigned char uint8
Definition: Defs.h:63