MCPcopy Create free account
hub / github.com/OpenZWave/open-zwave / GetNonceKey

Method GetNonceKey

cpp/src/Node.cpp:3806–3818  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3804//-----------------------------------------------------------------------------
3805
3806uint8 *Node::GetNonceKey(uint32 nonceid) {
3807 for (uint8 i = 0; i < 8; i++) {
3808 /* make sure the nonceid matches the first byte of our stored Nonce */
3809 if (nonceid == this->m_nonces[i][0]) {
3810 return &this->m_nonces[i][0];
3811 }
3812 }
3813 Log::Write(LogLevel_Warning, m_nodeId, "A Nonce with id %x does not exist", nonceid);
3814 for (uint8 i = 0; i < 8; i++) {
3815 PrintHex("NONCES", (const uint8_t*)this->m_nonces[i], 8);
3816 }
3817 return NULL;
3818}
3819
3820//-----------------------------------------------------------------------------
3821// <Node::GetDeviceTypeString>

Callers 1

ProcessMsgMethod · 0.80

Calls 1

WriteFunction · 0.85

Tested by

no test coverage detected