Tool/software: TI C/C++ Compiler
Hi
I'm going to send the data("ABC") fome samplethermostat(coordinator) to sampletemperaturesensor, I added the marked code to the thermostat.
it's true ?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
1. You can use AF_DataRequest. However, please note that you are using 0x0000 as the cluster ID, yet this is defined as the cluster ID of the Basic cluster. This may result in unexpected behavior.
It may be better to use the zcl functions to send ZCL data packets, since the zcl will fill in the appropriate fields in the command.
2. Please see the function zclSampleTemperatureSensor_SendTemp.
3. The Temperature Measurement cluster has attributes as defined in the Zigbee Cluster Library (ZCL). When a device receives a message and identifies the cluster ID, then it will expect those attributes which are defined for that cluster in the ZCL.
For example, if a device receives a report from Temperature Measurement cluster (with ID ZCL_CLUSTER_ID_MS_TEMPERATURE_MEASUREMENT), then it would expect to find the TemperatureMeasurement reportable attribute (ATTRID_MS_TEMPERATURE_MEASURED_VALUE). The Zigbee Cluster Library will explain what those attributes mean.