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

Method ResetController

cpp/src/Manager.cpp:4018–4038  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Reset controller and erase all node information -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

4016// Reset controller and erase all node information
4017//-----------------------------------------------------------------------------
4018void Manager::ResetController
4019(
4020 uint32 const _homeId
4021)
4022{
4023 if( Driver* driver = GetDriver( _homeId ) )
4024 {
4025 Event *event = new Event();
4026 driver->ResetController( event );
4027 Wait::Single( event );
4028 event->Release();
4029 string path = driver->GetControllerPath();
4030 Driver::ControllerInterface intf = driver->GetControllerInterfaceType();
4031 RemoveDriver( path );
4032 AddDriver( path, intf );
4033 Wait::Multiple( NULL, 0, 500 );
4034 }
4035OPENZWAVE_DEPRECATED_WARNINGS_OFF;
4036 RemoveAllScenes( _homeId );
4037OPENZWAVE_DEPRECATED_WARNINGS_ON;
4038}
4039
4040//-----------------------------------------------------------------------------
4041// <Manager::SoftReset>

Callers

nothing calls this directly

Calls 3

GetControllerPathMethod · 0.80
ReleaseMethod · 0.45

Tested by

no test coverage detected