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

Method RequestNodeDynamic

cpp/src/Manager.cpp:879–897  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Fetch only the dynamic command class data for a node from the Z-Wave network -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

877// Fetch only the dynamic command class data for a node from the Z-Wave network
878//-----------------------------------------------------------------------------
879bool Manager::RequestNodeDynamic
880(
881 uint32 const _homeId,
882 uint8 const _nodeId
883)
884{
885 if( Driver* driver = GetDriver( _homeId ) )
886 {
887 LockGuard LG(driver->m_nodeMutex);
888 // Retreive the Node's dynamic data
889 Node* node = driver->GetNode( _nodeId );
890 if( node )
891 {
892 node->SetQueryStage( Node::QueryStage_Dynamic );
893 return true;
894 }
895 }
896 return false;
897}
898
899//-----------------------------------------------------------------------------
900// <Manager::IsNodeListeningDevice>

Callers

nothing calls this directly

Calls 2

GetNodeMethod · 0.80
SetQueryStageMethod · 0.80

Tested by

no test coverage detected