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

Method SetStaticRequests

cpp/src/Node.cpp:1945–1971  ·  view source on GitHub ↗

----------------------------------------------------------------------------- The first time we hear from a node, we set flags to indicate the need to request certain static data from the device. This is so that we can track which data has been received, and which has not. -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

1943// we can track which data has been received, and which has not.
1944//-----------------------------------------------------------------------------
1945void Node::SetStaticRequests
1946(
1947)
1948{
1949 uint8 request = 0;
1950
1951 if( GetCommandClass( MultiInstance::StaticGetCommandClassId(), false ) )
1952 {
1953 // Request instances
1954 request |= (uint8)CommandClass::StaticRequest_Instances;
1955 }
1956
1957 if( GetCommandClass( Version::StaticGetCommandClassId(), false ) )
1958 {
1959 // Request versions
1960 request |= (uint8)CommandClass::StaticRequest_Version;
1961 }
1962
1963 if( request )
1964 {
1965 for( map<uint8,CommandClass*>::const_iterator it = m_commandClassMap.begin(); it != m_commandClassMap.end(); ++it )
1966 {
1967 it->second->SetStaticRequest( request );
1968 }
1969 SetQueryStage( QueryStage_ManufacturerSpecific2 );
1970 }
1971}
1972
1973//-----------------------------------------------------------------------------
1974// <Node::SetNodeName>

Callers

nothing calls this directly

Calls 3

SetStaticRequestMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected