----------------------------------------------------------------------------- Request current state from the device -----------------------------------------------------------------------------
| 91 | // Request current state from the device |
| 92 | //----------------------------------------------------------------------------- |
| 93 | bool 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 | //----------------------------------------------------------------------------- |
no test coverage detected