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

Method CreateVars

cpp/src/command_classes/ThermostatFanMode.cpp:344–358  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Create the values managed by this command class -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

342// Create the values managed by this command class
343//-----------------------------------------------------------------------------
344void ThermostatFanMode::CreateVars
345(
346 uint8 const _instance
347)
348{
349 if( m_supportedModes.empty() )
350 {
351 return;
352 }
353
354 if( Node* node = GetNodeUnsafe() )
355 {
356 node->CreateValueList( ValueID::ValueGenre_User, GetCommandClassId(), _instance, 0, "Fan Mode", "", false, false, 1, m_supportedModes, m_supportedModes[0].m_value, 0 );
357 }
358}
359

Callers

nothing calls this directly

Calls 3

GetCommandClassIdFunction · 0.85
CreateValueListMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected