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

Method CommandClass

cpp/src/command_classes/CommandClass.cpp:55–78  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Constructor -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

53// Constructor
54//-----------------------------------------------------------------------------
55CommandClass::CommandClass
56(
57 uint32 const _homeId,
58 uint8 const _nodeId
59):
60m_com(CompatOptionType_Compatibility, this),
61m_dom(CompatOptionType_Discovery, this),
62m_homeId( _homeId ),
63m_nodeId( _nodeId ),
64m_SecureSupport( true ),
65m_sentCnt( 0 ),
66m_receivedCnt( 0 )
67{
68 m_com.EnableFlag(COMPAT_FLAG_GETSUPPORTED, true);
69 m_com.EnableFlag(COMPAT_FLAG_OVERRIDEPRECISION, 0);
70 m_com.EnableFlag(COMPAT_FLAG_FORCEVERSION, 0);
71 m_com.EnableFlag(COMPAT_FLAG_CREATEVARS, true);
72 m_com.EnableFlag(COMPAT_FLAG_REFRESHONWAKEUP, false);
73 m_dom.EnableFlag(STATE_FLAG_CCVERSION, 1);
74 m_dom.EnableFlag(STATE_FLAG_STATIC_REQUESTS, 0);
75 m_dom.EnableFlag(STATE_FLAG_AFTERMARK, false);
76 m_dom.EnableFlag(STATE_FLAG_ENCRYPTED, false);
77 m_dom.EnableFlag(STATE_FLAG_INNIF, false);
78}
79
80//-----------------------------------------------------------------------------
81// <CommandClass::~CommandClass>

Callers

nothing calls this directly

Calls 1

EnableFlagMethod · 0.80

Tested by

no test coverage detected