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

Method IsNodeFailed

cpp/src/Manager.cpp:1620–1636  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Helper method to return whether a node is on the network or not -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

1618// Helper method to return whether a node is on the network or not
1619//-----------------------------------------------------------------------------
1620bool Manager::IsNodeFailed
1621(
1622 uint32 const _homeId,
1623 uint8 const _nodeId
1624)
1625{
1626 bool result = false;
1627 if( Driver* driver = GetDriver( _homeId ) )
1628 {
1629 LockGuard LG(driver->m_nodeMutex);
1630 if( Node* node = driver->GetNode( _nodeId ) )
1631 {
1632 result = !node->IsNodeAlive();
1633 }
1634 }
1635 return result;
1636}
1637
1638//-----------------------------------------------------------------------------
1639// <Manager::GetNodeQueryStage>

Callers

nothing calls this directly

Calls 2

GetNodeMethod · 0.80
IsNodeAliveMethod · 0.80

Tested by

no test coverage detected