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

Method AddNode

cpp/src/Manager.cpp:4184–4197  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Add a Device to the Network. -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

4182// Add a Device to the Network.
4183//-----------------------------------------------------------------------------
4184bool Manager::AddNode
4185(
4186 uint32 const _homeId, bool _doSecurity
4187)
4188{
4189 if (Driver *driver = GetDriver( _homeId ) ) {
4190 LockGuard LG(driver->m_nodeMutex);
4191 /* we use the Args option to communicate if Security CC should be initialized */
4192 return driver->BeginControllerCommand(
4193 Driver::ControllerCommand_AddDevice,
4194 NULL, NULL, true, 0, (_doSecurity == true ? 1 : 0));
4195 }
4196 return false;
4197}
4198
4199//-----------------------------------------------------------------------------
4200// <Manager::RemoveNode>

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected