----------------------------------------------------------------------------- Handle a message from the Z-Wave network -----------------------------------------------------------------------------
| 230 | // Handle a message from the Z-Wave network |
| 231 | //----------------------------------------------------------------------------- |
| 232 | void MultiInstance::HandleMultiInstanceReport |
| 233 | ( |
| 234 | uint8 const* _data, |
| 235 | uint32 const _length |
| 236 | ) |
| 237 | { |
| 238 | if( Node* node = GetNodeUnsafe() ) |
| 239 | { |
| 240 | uint8 commandClassId = _data[1]; |
| 241 | uint8 instances = _data[2]; |
| 242 | |
| 243 | if( CommandClass* pCommandClass = node->GetCommandClass( commandClassId ) ) |
| 244 | { |
| 245 | Log::Write( LogLevel_Info, GetNodeId(), "Received MultiInstanceReport from node %d for %s: Number of instances = %d", GetNodeId(), pCommandClass->GetCommandClassName().c_str(), instances ); |
| 246 | pCommandClass->SetInstances( instances ); |
| 247 | pCommandClass->ClearStaticRequest( StaticRequest_Instances ); |
| 248 | } |
| 249 | } |
| 250 | } |
| 251 | |
| 252 | //----------------------------------------------------------------------------- |
| 253 | // <MultiInstance::HandleMultiInstanceEncap> |
nothing calls this directly
no test coverage detected