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

Method RequestValue

cpp/src/command_classes/Lock.cpp:70–93  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Request current value from the device -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

68// Request current value from the device
69//-----------------------------------------------------------------------------
70bool 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//-----------------------------------------------------------------------------

Callers 6

RefreshValueMethod · 0.45
PollThreadProcMethod · 0.45
RequestConfigParamMethod · 0.45
CheckForRefreshValuesMethod · 0.45
SetMethod · 0.45

Calls 7

GetCommandClassIdFunction · 0.85
WriteFunction · 0.85
GetFlagBoolMethod · 0.80
SendMsgMethod · 0.80
GetNodeIdFunction · 0.70
SetInstanceMethod · 0.45
AppendMethod · 0.45

Tested by

no test coverage detected