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

Method ExchangeNetworkKeys

cpp/src/command_classes/Security.cpp:93–110  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Request current state from the device -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

91// Request current state from the device
92//-----------------------------------------------------------------------------
93bool Security::ExchangeNetworkKeys
94(
95)
96{
97 if (GetNodeUnsafe()->IsAddingNode()) {
98 Msg * msg = new Msg ("SecurityCmd_SchemeGet", GetNodeId(), REQUEST, FUNC_ID_ZW_SEND_DATA, true, true, FUNC_ID_APPLICATION_COMMAND_HANDLER, GetCommandClassId() );
99 msg->Append( GetNodeId() );
100 msg->Append( 3 );
101 msg->Append( GetCommandClassId() );
102 msg->Append( SecurityCmd_SchemeGet );
103 msg->Append( 0 );
104 msg->Append( GetDriver()->GetTransmitOptions() );
105 /* SchemeGet is unencrypted */
106 GetDriver()->SendMsg(msg, Driver::MsgQueue_Command);
107 return true;
108 }
109 return false;
110}
111
112
113//-----------------------------------------------------------------------------

Callers 1

SetProtocolInfoMethod · 0.80

Calls 5

GetCommandClassIdFunction · 0.85
IsAddingNodeMethod · 0.80
SendMsgMethod · 0.80
GetNodeIdFunction · 0.70
AppendMethod · 0.45

Tested by

no test coverage detected