53 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 );
58 void Append(
uint8 const _data );
60 void UpdateCallbackId();
112 string GetAsString();
122 return( m_bFinal && (m_length==11) && (m_buffer[3]==0x13) && (m_buffer[6]==0x84) && (m_buffer[7]==0x08) );
126 return( m_bFinal && (m_length==11) && (m_buffer[3]==0x13) && (m_buffer[6]==0x00) && (m_buffer[7]==0x00) );
129 bool operator == (
Msg const& _other )
const
131 if( m_bFinal && _other.m_bFinal )
134 uint8 length = m_length - (m_bCallbackRequired ? 2: 1 );
135 return( !memcmp( m_buffer, _other.m_buffer, length ) );
141 if (m_buffer[3] == 0x13) {
158 memcpy(m_nonce, nonce, 8);
163 memset((m_nonce),
'\0', 8);
164 m_noncerecvd =
false;
179 bool m_bCallbackRequired;
182 uint8 m_expectedReply;
183 uint8 m_expectedCommandClassId;
188 uint8 m_targetNodeId;
189 uint8 m_sendAttempts;
190 uint8 m_maxSendAttempts;
200 static uint8 s_nextCallbackId;
unsigned int uint32
Definition Defs.h:80
#define MAX_MAX_TRIES
Definition Defs.h:214
#define OPENZWAVE_EXPORT
Definition Defs.h:52
unsigned char uint8
Definition Defs.h:74
Base class for all Z-Wave command classes.
Definition CommandClass.h:47
The Driver class handles communication between OpenZWave and a device attached via a serial port (typ...
Definition Driver.h:59
Message object to be passed to and from devices on the Z-Wave network.
Definition Msg.h:45
void setNonce(uint8 nonce[8])
Definition Msg.h:157
uint8 GetCallbackId() const
Identifies the Callback ID (if any) for this message. Callback ID is a value (OpenZWave uses sequenti...
Definition Msg.h:73
uint8 GetExpectedReply() const
Identifies the expected reply type (if any) for this message. The expected reply is a function code....
Definition Msg.h:83
~Msg()
Definition Msg.h:54
bool IsWakeUpNoMoreInformationCommand()
Definition Msg.h:120
void UpdateCallbackId()
Definition Msg.cpp:196
bool isEncrypted()
Definition Msg.h:148
bool isNonceRecieved()
Definition Msg.h:154
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)
Definition Msg.cpp:51
void SetMaxSendAttempts(uint8 _count)
Definition Msg.h:118
string GetLogText() const
For messages that request a Report for a specified command class, identifies the expected Index for t...
Definition Msg.h:108
uint8 GetMaxSendAttempts() const
Definition Msg.h:117
void SetHomeId(uint32 homeId)
Definition Msg.h:166
uint8 GetExpectedCommandClassId() const
Identifies the expected Command Class ID (if any) for this message.
Definition Msg.h:89
uint8 GetExpectedInstance() const
For messages that request a Report for a specified command class, identifies the expected Instance fo...
Definition Msg.h:96
void clearNonce()
Definition Msg.h:162
uint8 GetSendingCommandClass()
Definition Msg.h:140
void setEncrypted()
Definition Msg.h:151
uint32 GetLength() const
Definition Msg.h:110
uint8 GetTargetNodeId() const
Identifies the Node ID of the "target" node (if any) for this function.
Definition Msg.h:66
MessageFlags
Definition Msg.h:48
@ m_MultiChannel
Definition Msg.h:49
@ m_MultiInstance
Definition Msg.h:50
bool IsNoOperation()
Definition Msg.h:124
uint8 GetSendAttempts() const
Definition Msg.h:114
void SetSendAttempts(uint8 _count)
Definition Msg.h:115