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

Method SetSceneValue

cpp/src/Manager.cpp:5001–5014  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Set a scene's ValueID bool value. -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

4999// Set a scene's ValueID bool value.
5000//-----------------------------------------------------------------------------
5001bool Manager::SetSceneValue
5002(
5003 uint8 const _sceneId,
5004 ValueID const& _valueId,
5005 bool const _value
5006)
5007{
5008 Scene *scene = Scene::Get( _sceneId );
5009 if( scene != NULL )
5010 {
5011 return scene->SetValue( _valueId, _value ? "True" : "False" );
5012 }
5013 return false;
5014}
5015
5016//-----------------------------------------------------------------------------
5017// <Manager::SetSceneValue>

Callers

nothing calls this directly

Calls 2

GetFunction · 0.70
SetValueMethod · 0.45

Tested by

no test coverage detected