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

Method HealNetwork

cpp/src/Manager.cpp:4158–4179  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Heal the Z-Wave network one node at a time. -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

4156// Heal the Z-Wave network one node at a time.
4157//-----------------------------------------------------------------------------
4158void Manager::HealNetwork
4159(
4160 uint32 const _homeId,
4161 bool _doRR
4162)
4163{
4164 if( Driver* driver = GetDriver( _homeId ) )
4165 {
4166 LockGuard LG(driver->m_nodeMutex);
4167 for( uint8 i=0; i<255; i++ )
4168 {
4169 if( driver->m_nodes[i] != NULL )
4170 {
4171 driver->BeginControllerCommand( Driver::ControllerCommand_RequestNodeNeighborUpdate, NULL, NULL, true, i, 0 );
4172 if( _doRR )
4173 {
4174 driver->UpdateNodeRoutes( i, true );
4175 }
4176 }
4177 }
4178 }
4179}
4180//-----------------------------------------------------------------------------
4181// <Manager::AddNode>
4182// Add a Device to the Network.

Callers

nothing calls this directly

Calls 2

UpdateNodeRoutesMethod · 0.80

Tested by

no test coverage detected