----------------------------------------------------------------------------- Handle a message from the Z-Wave network -----------------------------------------------------------------------------
| 218 | // Handle a message from the Z-Wave network |
| 219 | //----------------------------------------------------------------------------- |
| 220 | bool 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> |
nothing calls this directly
no outgoing calls
no test coverage detected