User`s manual

79
ZCL Requests/Responses
In order to perform a ZCL command on a remote server cluster, a corresponding client
cluster must exist locally. In order to perform a ZCL command on a remote client cluster,
a corresponding server cluster must exist locally. If necessary, the add_cluster command
can be used to create a ZCL cluster of the appropriate type. (See “add_cluster” on
page 67)
Note: Some local ZCL requests do not have this limitation.
read_attributes
Reads ZCL attributes from the given cluster on the given device and endpoint.
Parameter Type Description
cluster_id int 16-bit identifier of the cluster to which the ZCL command will be sent.
server_or_client int Target cluster is a server (0) or client (1) cluster.
destination_endpoint_id int 8-bit identifier of the endpoint on which the target cluster exists.
source_endpoint_id (optional) int 8-bit identifier of the endpoint from w
hich the ZCL command will be
sent. Only required for remote commands.
destination_address (optional) MAC 64-bit extended address of the device to send the ZCL command to.
If not prov
ided, the request will be to the local device.
manufacturer_code (optional) int 16-bit manufacturer code of the attrib
utes in the record list.
record_list list List of records which will make up the p
ayload of the ZCL Read Attri-
butes Command.
Item - Re
adAttributeRecord. (See “ReadAttributeRecord” on
page 119)
read_attributes Parameters:
read_attributes_response Parameters:
Parameter Type Description
cluster_id int 16-bit identifier of the cluster from which the r
esponse was sent.
server_or_client int Indicates whether the cluster from which the response was sent was
a
server (0) or client (1) cluster.
profile_id int 16-bit profile identifier of the end
point from which the response was
sent.
source_endpoint_id int 8-bit identifier of the endpoint from which the response was sent.
destination_endpoint_id
(
optional)
int 8-bit identifier of the endpoint to which the response was sent. Only
included if the request was not local.
source_address (optional) MAC 64-bit extended address of the device from which the response was
sen
t. Only included if the request was not local.