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

Method CreateVars

cpp/src/command_classes/BasicWindowCovering.cpp:107–117  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

105// Create the values managed by this command class
106//-----------------------------------------------------------------------------
107void BasicWindowCovering::CreateVars
108(
109 uint8 const _instance
110)
111{
112 if( Node* node = GetNodeUnsafe() )
113 {
114 node->CreateValueButton( ValueID::ValueGenre_User, GetCommandClassId(), _instance, BasicWindowCoveringIndex_Open, "Open", 0 );
115 node->CreateValueButton( ValueID::ValueGenre_User, GetCommandClassId(), _instance, BasicWindowCoveringIndex_Close, "Close", 0 );
116 }
117}
118

Callers

nothing calls this directly

Calls 2

GetCommandClassIdFunction · 0.85
CreateValueButtonMethod · 0.80

Tested by

no test coverage detected