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

Method HandleMsg

cpp/src/command_classes/Meter.cpp:220–238  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Handle a message from the Z-Wave network -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

218// Handle a message from the Z-Wave network
219//-----------------------------------------------------------------------------
220bool Meter::HandleMsg
221(
222 uint8 const* _data,
223 uint32 const _length,
224 uint32 const _instance // = 1
225)
226{
227 bool handled = false;
228 if (MeterCmd_SupportedReport == (MeterCmd)_data[0])
229 {
230 handled = HandleSupportedReport( _data, _length, _instance );
231 }
232 else if (MeterCmd_Report == (MeterCmd)_data[0])
233 {
234 handled = HandleReport( _data, _length, _instance );
235 }
236
237 return handled;
238}
239
240//-----------------------------------------------------------------------------
241// <Meter::HandleSupportedReport>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected