struct

Matter::Cluster::Definitions::Groups::GetGroupMembershipResponse

Inherits TLV::Serializable < Struct < Value < Object

The GetGroupMembershipResponse command is sent by the Groups cluster server in response to a GetGroupMembership command.

The fields of the GetGroupMembershipResponse command have the following semantics:

The Capacity field shall contain the remaining capacity of the Group Table of the node. The following values apply:

• 0 - No further groups may be added.

• 0 < Capacity < 0xfe - Capacity holds the number of groups that may be added.

• 0xfe - At least 1 further group may be added (exact number is unknown).

• null - It is unknown if any further groups may be added.

The GroupList field shall contain either the group IDs of all the groups in the Group Table for which the server endpoint is a member of the group (in the case where the GroupList field of the received GetGroupMembership command was empty), or the group IDs of all the groups in the Group Table for which the server endpoint is a member of the group and for which the group ID was included in the the GroupList field of the received GetGroupMembership command (in the case where the GroupList field of the received GetGroupMembership command was not empty).

Zigbee: If the total number of groups will cause the maximum payload length of a frame to be exceeded, then the GroupList field shall contain only as many groups as will fit.

Constructors

new(any : TLV::Any)
Source

Class methods

from_io(io : IO, format : IO::ByteFormat = IO::ByteFormat::LittleEndian)
Source
from_slice(bytes : Bytes)
Source
from_tlv(any : TLV::Any)
Source
from_tlv(data : Bytes)
Source

Instance methods

capacity
Source
capacity=(capacity : UInt8 | Nil)
Source
group_list
Source
group_list=(group_list : Array(DataType::GroupId))
Source
to_io(io : IO, format : IO::ByteFormat = IO::ByteFormat::LittleEndian) : Nil
Source
to_slice
Source
to_tlv(outer_tag : Nil | UInt8 | Tuple(UInt16, UInt16) | Tuple(UInt16, UInt16, UInt16) = nil) : TLV::Any
Source