public interface ZigBeeGroup
Modifier and Type | Field and Description |
---|---|
static String |
ID
Key of the
String containing the Group Address of the device. |
Modifier and Type | Method and Description |
---|---|
int |
getGroupAddress()
Returns the 16-bit group address.
|
ZCLCommandResponseStream |
groupcast(int clusterId,
ZCLFrame frame)
Sends a ZCL frame to the group represented by this service.
|
ZCLCommandResponseStream |
groupcast(int clusterId,
ZCLFrame frame,
String exportedServicePID)
Sends a ZCL frame to the ZigBee group represented by this service.
|
Promise<Void> |
joinGroup(String pid)
Requests an endpoint to join this group.
|
Promise<Void> |
leaveGroup(String pid)
Requests an endpoint to leave this group.
|
static final String ID
String
containing the Group Address of the device.
It is a mandatory property for this service.
int getGroupAddress()
Promise<Void> joinGroup(String pid)
APSException.SUCCESS
, APSException.INVALID_PARAMETER
or
APSException.TABLE_FULL
. When the joining is performed remotely
on an imported ZigBeeEndpoint
, it may also fail because the
command is not supported by the remote endpoint, or because the remote
device cannot perform the operation at the moment (see
ZCLException
).pid
- String
representing the service PID of the
ZigBeeEndpoint
to add to this Group.Promise.getFailure()
returns null if the cluster has been
successfully bound. The adequate ZigBeeException
is
returned otherwise.Promise<Void> leaveGroup(String pid)
APSException.SUCCESS
, APSException.INVALID_GROUP
or
APSException.INVALID_PARAMETER
. When the command is invoked
remotely on an imported ZigBeeEndpoint
, it may also fail because
the command is not supported by the remote endpoint, or because the
remote device cannot perform the operation at the moment (see
ZCLException
).pid
- String
representing the service PID of the
ZigBeeEndpoint
to remove from this Group.Promise.getFailure()
returns null if the cluster has been
successfully bound. The adequate ZigBeeException
is
returned otherwise.ZCLCommandResponseStream groupcast(int clusterId, ZCLFrame frame)
The source endpoint is not specified in this method call. To send the appropriate message on the network, the base driver must generate a source endpoint. The latter must not correspond to any exported endpoint.
clusterId
- a cluster identifier.frame
- a command frame sequence.ZCLCommandResponseStream
to collect every ZCL frame one
after the other in case of multiple responses.ZCLCommandResponseStream groupcast(int clusterId, ZCLFrame frame, String exportedServicePID)
This method is to be used by applications when the targeted device has to distinguish between source endpoints of the message. For instance, alarms cluster (see 3.11 Alarms Cluster in [ZCL]) generated events are differently interpreted if they come from the oven or from the intrusion alert system.
clusterId
- a cluster identifier.frame
- a command frame sequence.exportedServicePID
- : the source endpoint of the command request.
In targeted situations, the source endpoint is the valid service
PID of an exported endpoint.ZCLCommandResponseStream
to collect every ZCL frame one
after the other in case of multiple responses.Copyright © Contributors to the Eclipse Foundation Licensed under the Eclipse Foundation Specification License – v1.0