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

Method RequestValue

cpp/src/command_classes/Clock.cpp:90–113  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

88// Request current value from the device
89//-----------------------------------------------------------------------------
90bool Clock::RequestValue
91(
92 uint32 const _requestFlags,
93 uint16 const _dummy1, // = 0 (not used)
94 uint8 const _instance,
95 Driver::MsgQueue const _queue
96)
97{
98 if ( m_com.GetFlagBool(COMPAT_FLAG_GETSUPPORTED) )
99 {
100 Msg* msg = new Msg( "ClockCmd_Get", GetNodeId(), REQUEST, FUNC_ID_ZW_SEND_DATA, true, true, FUNC_ID_APPLICATION_COMMAND_HANDLER, GetCommandClassId() );
101 msg->SetInstance( this, _instance );
102 msg->Append( GetNodeId() );
103 msg->Append( 2 );
104 msg->Append( GetCommandClassId() );
105 msg->Append( ClockCmd_Get );
106 msg->Append( GetDriver()->GetTransmitOptions() );
107 GetDriver()->SendMsg( msg, _queue );
108 return true;
109 } else {
110 Log::Write( LogLevel_Info, GetNodeId(), "ClockCmd_Get Not Supported on this node");
111 }
112 return false;
113}
114
115//-----------------------------------------------------------------------------
116// <Clock::HandleMsg>

Callers

nothing calls this directly

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