55 m_MultiChannel = 0x01,
56 m_MultiInstance = 0x02,
60 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);
66 void SetSupervision(
uint8 _session_id);
68 void Append(
uint8 const _data);
69 void AppendArray(
const uint8*
const _data,
const uint8 _length);
71 void UpdateCallbackId();
79 return m_targetNodeId;
102 return m_expectedReply;
111 return m_expectedCommandClassId;
141 return m_encrypted ==
true ? m_length + 20 + 6 : m_length;
144 string GetAsString();
148 return m_sendAttempts;
152 m_sendAttempts = _count;
157 return m_maxSendAttempts;
162 m_maxSendAttempts = _count;
167 return (m_bFinal && (m_length == 11) && (m_buffer[3] == 0x13) && (m_buffer[6] == 0x84) && (m_buffer[7] == 0x08));
171 return (m_bFinal && (m_length == 11) && (m_buffer[3] == 0x13) && (m_buffer[6] == 0x00) && (m_buffer[7] == 0x00));
174 bool operator ==(
Msg const& _other)
const
176 if (m_bFinal && _other.m_bFinal)
179 uint8 length = m_length - (m_bCallbackRequired ? 2 : 1);
180 return (!memcmp(m_buffer, _other.m_buffer, length));
187 if (m_buffer[3] == 0x13)
207 memcpy(m_nonce, nonce, 8);
213 memset((m_nonce),
'\0', 8);
214 m_noncerecvd =
false;
222 m_resendDuetoCANorNAK =
true;
226 return m_resendDuetoCANorNAK;
232 Driver* GetDriver()
const;
236 void SupervisionEncap();
239 bool m_bCallbackRequired;
242 uint8 m_expectedReply;
243 uint8 m_expectedCommandClassId;
248 uint8 m_targetNodeId;
249 uint8 m_sendAttempts;
250 uint8 m_maxSendAttempts;
255 uint8 m_supervision_session_id;
261 static uint8 s_nextCallbackId;
263 bool m_resendDuetoCANorNAK;
unsigned int uint32
Definition Defs.h:91
#define MAX_MAX_TRIES
Definition Defs.h:225
#define OPENZWAVE_EXPORT
Definition Defs.h:52
unsigned char uint8
Definition Defs.h:85
The Driver class handles communication between OpenZWave and a device attached via a serial port (typ...
Definition Driver.h:85
Base class for all Z-Wave command classes.
Definition CommandClass.h:61
Message object to be passed to and from devices on the Z-Wave network.
Definition Msg.h:51
bool isNonceRecieved()
Definition Msg.h:201
void SetSendAttempts(uint8 _count)
Definition Msg.h:150
string GetLogText() const
For messages that request a Report for a specified command class, identifies the expected Index for t...
Definition Msg.h:134
bool IsWakeUpNoMoreInformationCommand()
Definition Msg.h:165
uint8 GetExpectedInstance() const
For messages that request a Report for a specified command class, identifies the expected Instance fo...
Definition Msg.h:119
void setResendDuetoCANorNAK()
Definition Msg.h:220
uint8 GetCallbackId() const
Identifies the Callback ID (if any) for this message. Callback ID is a value (OpenZWave uses sequenti...
Definition Msg.h:87
uint8 GetMaxSendAttempts() const
Definition Msg.h:155
MessageFlags
Definition Msg.h:54
~Msg()
Definition Msg.h:61
bool isResendDuetoCANorNAK()
Definition Msg.h:224
uint8 GetExpectedCommandClassId() const
Identifies the expected Command Class ID (if any) for this message.
Definition Msg.h:109
void setEncrypted()
Definition Msg.h:197
bool isEncrypted()
Definition Msg.h:193
uint8 GetTargetNodeId() const
Identifies the Node ID of the "target" node (if any) for this function.
Definition Msg.h:77
void SetHomeId(uint32 homeId)
Definition Msg.h:216
void setNonce(uint8 nonce[8])
Definition Msg.h:205
void SetMaxSendAttempts(uint8 _count)
Definition Msg.h:159
uint32 GetLength() const
Definition Msg.h:139
uint8 GetSendAttempts() const
Definition Msg.h:146
uint8 GetExpectedReply() const
Identifies the expected reply type (if any) for this message. The expected reply is a function code....
Definition Msg.h:100
uint8 GetSendingCommandClass()
Definition Msg.h:185
void clearNonce()
Definition Msg.h:211
bool IsNoOperation()
Definition Msg.h:169
Definition Bitfield.cpp:31