----------------------------------------------------------------------------- Request details of an association group -----------------------------------------------------------------------------
| 320 | // Request details of an association group |
| 321 | //----------------------------------------------------------------------------- |
| 322 | void Association::QueryGroup |
| 323 | ( |
| 324 | uint8 _groupIdx, |
| 325 | uint32 const _requestFlags |
| 326 | ) |
| 327 | { |
| 328 | if ( m_com.GetFlagBool(COMPAT_FLAG_GETSUPPORTED) ) |
| 329 | { |
| 330 | Log::Write( LogLevel_Info, GetNodeId(), "Get Associations for group %d of node %d", _groupIdx, GetNodeId() ); |
| 331 | Msg* msg = new Msg( "AssociationCmd_Get", GetNodeId(), REQUEST, FUNC_ID_ZW_SEND_DATA, true, true, FUNC_ID_APPLICATION_COMMAND_HANDLER, GetCommandClassId() ); |
| 332 | msg->Append( GetNodeId() ); |
| 333 | msg->Append( 3 ); |
| 334 | msg->Append( GetCommandClassId() ); |
| 335 | msg->Append( AssociationCmd_Get ); |
| 336 | msg->Append( _groupIdx ); |
| 337 | msg->Append( GetDriver()->GetTransmitOptions() ); |
| 338 | GetDriver()->SendMsg( msg, Driver::MsgQueue_Send ); |
| 339 | return; |
| 340 | } else { |
| 341 | Log::Write( LogLevel_Info, GetNodeId(), "AssociationCmd_Get Not Supported on this node"); |
| 342 | } |
| 343 | return; |
| 344 | } |
| 345 | //----------------------------------------------------------------------------- |
| 346 | // <Association::Set> |
| 347 | // Add an association between devices |
no test coverage detected