----------------------------------------------------------------------------- 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. -----------------------------------------------------------------------------
| 1943 | // we can track which data has been received, and which has not. |
| 1944 | //----------------------------------------------------------------------------- |
| 1945 | void 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> |
nothing calls this directly
no test coverage detected