----------------------------------------------------------------------------- Request current value from the device -----------------------------------------------------------------------------
| 68 | // Request current value from the device |
| 69 | //----------------------------------------------------------------------------- |
| 70 | bool Lock::RequestValue |
| 71 | ( |
| 72 | uint32 const _requestFlags, |
| 73 | uint16 const _dummy1, // = 0 (not used) |
| 74 | uint8 const _instance, |
| 75 | Driver::MsgQueue const _queue |
| 76 | ) |
| 77 | { |
| 78 | if ( m_com.GetFlagBool(COMPAT_FLAG_GETSUPPORTED) ) |
| 79 | { |
| 80 | Msg* msg = new Msg( "LockCmd_Get", GetNodeId(), REQUEST, FUNC_ID_ZW_SEND_DATA, true, true, FUNC_ID_APPLICATION_COMMAND_HANDLER, GetCommandClassId() ); |
| 81 | msg->SetInstance( this, _instance ); |
| 82 | msg->Append( GetNodeId() ); |
| 83 | msg->Append( 2 ); |
| 84 | msg->Append( GetCommandClassId() ); |
| 85 | msg->Append( LockCmd_Get ); |
| 86 | msg->Append( GetDriver()->GetTransmitOptions() ); |
| 87 | GetDriver()->SendMsg( msg, _queue ); |
| 88 | return true; |
| 89 | } else { |
| 90 | Log::Write( LogLevel_Info, GetNodeId(), "LockCmd_Get Not Supported on this node"); |
| 91 | } |
| 92 | return false; |
| 93 | } |
| 94 | |
| 95 | |
| 96 | //----------------------------------------------------------------------------- |
no test coverage detected