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

Method Set

cpp/src/command_classes/Basic.cpp:240–252  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Helper method to set the level -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

238// Helper method to set the level
239//-----------------------------------------------------------------------------
240void Basic::Set
241(
242 uint8 const _level
243)
244{
245 // This may look like a long winded way to do this, but
246 // it ensures that all the proper notifications get sent.
247 if( ValueByte* value = static_cast<ValueByte*>( GetValue( 1, 0 ) ) )
248 {
249 value->Set( _level );
250 value->Release();
251 }
252}
253
254//-----------------------------------------------------------------------------
255// <Basic::SetMapping>

Callers 2

SetInstanceMethod · 0.45
HandleMsgMethod · 0.45

Calls 1

ReleaseMethod · 0.45

Tested by

no test coverage detected