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

Method HealNetworkNode

cpp/src/Manager.cpp:4132–4152  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Heal a single node in the network -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

4130// Heal a single node in the network
4131//-----------------------------------------------------------------------------
4132void Manager::HealNetworkNode
4133(
4134 uint32 const _homeId,
4135 uint8 const _nodeId,
4136 bool _doRR
4137)
4138{
4139 if( Driver* driver = GetDriver( _homeId ) )
4140 {
4141 LockGuard LG(driver->m_nodeMutex);
4142 Node* node = driver->GetNode( _nodeId );
4143 if( node )
4144 {
4145 driver->BeginControllerCommand( Driver::ControllerCommand_RequestNodeNeighborUpdate, NULL, NULL, true, _nodeId, 0 );
4146 if( _doRR )
4147 {
4148 driver->UpdateNodeRoutes( _nodeId, true );
4149 }
4150 }
4151 }
4152}
4153
4154//-----------------------------------------------------------------------------
4155// <Manager::HealNetwork>

Callers

nothing calls this directly

Calls 3

GetNodeMethod · 0.80
UpdateNodeRoutesMethod · 0.80

Tested by

no test coverage detected