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

Method RequestColorChannelReport

cpp/src/command_classes/Color.cpp:220–242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

218}
219
220bool Color::RequestColorChannelReport
221(
222 uint8 const coloridx,
223 uint8 const _instance,
224 Driver::MsgQueue const _queue
225)
226{
227 /* make sure our coloridx is valid */
228 if ((m_dom.GetFlagShort(STATE_FLAG_COLOR_CHANNELS)) & (1<<(coloridx))) {
229 Msg* msg = new Msg("ColorCmd_Get", GetNodeId(), REQUEST, FUNC_ID_ZW_SEND_DATA, true, true, FUNC_ID_APPLICATION_COMMAND_HANDLER, GetCommandClassId());
230 msg->SetInstance( this, _instance );
231 msg->Append( GetNodeId() );
232 msg->Append( 3 );
233 msg->Append( GetCommandClassId() );
234 msg->Append( ColorCmd_Get );
235 msg->Append( coloridx );
236 msg->Append( GetDriver()->GetTransmitOptions() );
237 GetDriver()->SendMsg( msg, _queue );
238 return true;
239 }
240 return false;
241
242}
243
244
245//-----------------------------------------------------------------------------

Callers

nothing calls this directly

Calls 6

GetCommandClassIdFunction · 0.85
GetFlagShortMethod · 0.80
SendMsgMethod · 0.80
GetNodeIdFunction · 0.70
SetInstanceMethod · 0.45
AppendMethod · 0.45

Tested by

no test coverage detected