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

Method WriteConfig

cpp/src/Manager.cpp:293–308  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Save the configuration of a driver to a file -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

291// Save the configuration of a driver to a file
292//-----------------------------------------------------------------------------
293void Manager::WriteConfig
294(
295 uint32 const _homeId
296)
297{
298 if( Driver* driver = GetDriver( _homeId ) )
299 {
300 driver->WriteCache();
301 Log::Write( LogLevel_Info, "mgr, Manager::WriteConfig completed for driver with home ID of 0x%.8x", _homeId );
302 }
303 else
304 {
305 Log::Write( LogLevel_Info, "mgr, Manager::WriteConfig failed - _homeId %d not found", _homeId );
306 }
307 Scene::WriteXML( "zwscene.xml" );
308}
309
310//-----------------------------------------------------------------------------
311// Drivers

Callers 1

mainFunction · 0.80

Calls 2

WriteFunction · 0.85
WriteCacheMethod · 0.80

Tested by

no test coverage detected