Other Parts Discussed in Thread: Z-STACK
Is there a way i can configure an end device to periodically notify coordinator about the battery voltage measure at its end using Power Configuration Cluster?
I tried adding "
bdb_RepAddAttrCfgRecordDefaultToList(TEMPERATURESENSOR_ENDPOINT, ZCL_CLUSTER_ID_GEN_POWER_CFG, ATTRID_POWER_CFG_BATTERY_PERCENTAGE_REMAINING, 0, 10, reportableChange);" to my end device code but from log i see it doesn't work as expected.
My cluster and attribute list as follows
const cId_t zclTemperatureSensor_InClusterList[ZCLTEMPERATURESENSOR_MAX_INCLUSTERS] =
{
ZCL_CLUSTER_ID_GEN_BASIC,
ZCL_CLUSTER_ID_GEN_POWER_CFG,
ZCL_CLUSTER_ID_GEN_IDENTIFY,
ZCL_CLUSTER_ID_MS_TEMPERATURE_MEASUREMENT
};
// *** Power Configuration Attriubtes ***
{
ZCL_CLUSTER_ID_GEN_POWER_CFG,
{ // Attribute record
ATTRID_POWER_CFG_BATTERY_PERCENTAGE_REMAINING,
ZCL_DATATYPE_UINT8,
ACCESS_CONTROL_READ | ACCESS_REPORTABLE,
(void *)&zclTemperatureSensor_BattRemaining
}
},