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

Method CreateVars

cpp/src/command_classes/Version.cpp:217–228  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

215// Create the values managed by this command class
216//-----------------------------------------------------------------------------
217void Version::CreateVars
218(
219 uint8 const _instance
220)
221{
222 if( Node* node = GetNodeUnsafe() )
223 {
224 node->CreateValueString( ValueID::ValueGenre_System, GetCommandClassId(), _instance, VersionIndex_Library, "Library Version", "", true, false, "Unknown", 0 );
225 node->CreateValueString( ValueID::ValueGenre_System, GetCommandClassId(), _instance, VersionIndex_Protocol, "Protocol Version", "", true, false, "Unknown", 0 );
226 node->CreateValueString( ValueID::ValueGenre_System, GetCommandClassId(), _instance, VersionIndex_Application, "Application Version", "", true, false, "Unknown", 0 );
227 }
228}

Callers

nothing calls this directly

Calls 2

GetCommandClassIdFunction · 0.85
CreateValueStringMethod · 0.80

Tested by

no test coverage detected