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

Method QueryGroup

cpp/src/command_classes/Association.cpp:322–344  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Request details of an association group -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

320// Request details of an association group
321//-----------------------------------------------------------------------------
322void Association::QueryGroup
323(
324 uint8 _groupIdx,
325 uint32 const _requestFlags
326)
327{
328 if ( m_com.GetFlagBool(COMPAT_FLAG_GETSUPPORTED) )
329 {
330 Log::Write( LogLevel_Info, GetNodeId(), "Get Associations for group %d of node %d", _groupIdx, GetNodeId() );
331 Msg* msg = new Msg( "AssociationCmd_Get", GetNodeId(), REQUEST, FUNC_ID_ZW_SEND_DATA, true, true, FUNC_ID_APPLICATION_COMMAND_HANDLER, GetCommandClassId() );
332 msg->Append( GetNodeId() );
333 msg->Append( 3 );
334 msg->Append( GetCommandClassId() );
335 msg->Append( AssociationCmd_Get );
336 msg->Append( _groupIdx );
337 msg->Append( GetDriver()->GetTransmitOptions() );
338 GetDriver()->SendMsg( msg, Driver::MsgQueue_Send );
339 return;
340 } else {
341 Log::Write( LogLevel_Info, GetNodeId(), "AssociationCmd_Get Not Supported on this node");
342 }
343 return;
344}
345//-----------------------------------------------------------------------------
346// <Association::Set>
347// Add an association between devices

Callers 2

AddAssociationMethod · 0.45
RemoveAssociationMethod · 0.45

Calls 6

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

Tested by

no test coverage detected