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

Method CreateNewPrimary

cpp/src/Manager.cpp:4336–4348  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Send a NIF frame from the Controller to the Node -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

4334// Send a NIF frame from the Controller to the Node
4335//-----------------------------------------------------------------------------
4336bool Manager::CreateNewPrimary
4337(
4338 uint32 const _homeId
4339)
4340{
4341 if (Driver *driver = GetDriver( _homeId ) ) {
4342 LockGuard LG(driver->m_nodeMutex);
4343 return driver->BeginControllerCommand(
4344 Driver::ControllerCommand_CreateNewPrimary,
4345 NULL, NULL, true, 0, 0);
4346 }
4347 return false;
4348}
4349
4350//-----------------------------------------------------------------------------
4351// <Manager::ReceiveConfiguration>

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected