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

Method InitAllNodes

cpp/src/Driver.cpp:4619–4637  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Delete all nodes and fetch new node data from the Z-Wave network -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

4617// Delete all nodes and fetch new node data from the Z-Wave network
4618//-----------------------------------------------------------------------------
4619void Driver::InitAllNodes
4620(
4621)
4622{
4623 // Delete all the node data
4624 {
4625 LockGuard LG(m_nodeMutex);
4626 for( int i=0; i<256; ++i )
4627 {
4628 if( m_nodes[i] )
4629 {
4630 delete m_nodes[i];
4631 m_nodes[i] = NULL;
4632 }
4633 }
4634 }
4635 // Fetch new node data from the Z-Wave network
4636 m_controller->PlayInitSequence( this );
4637}
4638
4639//-----------------------------------------------------------------------------
4640// <Driver::InitNode>

Callers

nothing calls this directly

Calls 1

PlayInitSequenceMethod · 0.80

Tested by

no test coverage detected