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

Method AddAssociation

cpp/src/Driver.cpp:6172–6185  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Adds a node to an association group -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

6170// Adds a node to an association group
6171//-----------------------------------------------------------------------------
6172void Driver::AddAssociation
6173(
6174 uint8 const _nodeId,
6175 uint8 const _groupIdx,
6176 uint8 const _targetNodeId,
6177 uint8 const _instance
6178)
6179{
6180 LockGuard LG(m_nodeMutex);
6181 if( Node* node = GetNode( _nodeId ) )
6182 {
6183 node->AddAssociation( _groupIdx, _targetNodeId, _instance );
6184 }
6185}
6186
6187//-----------------------------------------------------------------------------
6188// <Driver::RemoveAssociation>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected