----------------------------------------------------------------------------- Add a Device to the Network. -----------------------------------------------------------------------------
| 4182 | // Add a Device to the Network. |
| 4183 | //----------------------------------------------------------------------------- |
| 4184 | bool 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> |
nothing calls this directly
no test coverage detected