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

Method RequestNodeState

cpp/src/Manager.cpp:855–873  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

853// Fetch the command class data for a node from the Z-Wave network
854//-----------------------------------------------------------------------------
855bool Manager::RequestNodeState
856(
857 uint32 const _homeId,
858 uint8 const _nodeId
859)
860{
861 if( Driver* driver = GetDriver( _homeId ) )
862 {
863 LockGuard LG(driver->m_nodeMutex);
864 // Retreive the Node's session and dynamic data
865 Node* node = driver->GetNode( _nodeId );
866 if( node )
867 {
868 node->SetQueryStage( Node::QueryStage_Associations );
869 return true;
870 }
871 }
872 return false;
873}
874
875//-----------------------------------------------------------------------------
876// <Manager::RequestNodeDynamic>

Callers

nothing calls this directly

Calls 2

GetNodeMethod · 0.80
SetQueryStageMethod · 0.80

Tested by

no test coverage detected