Hello everyone,
I need some help with ZCL Alarms Cluster implementation. Right now I am reading official zcl specification document ( Alarms Cluster, Power Cfg Cluster ), but it is a little bit confusing for me. Basically I have one end device on which battery voltage level is monitored. My intention is to inform coordinator when battery voltage(on end device) drops bellow some threshold value. In official zcl specification stands that ED should generate alarm when this occur.
I have realized battery voltage measurements and it works well, now I want to send alarm to coordinator by
zclGeneral_SendAlarm( myEndpoint, &coordAddr, 0x01, ZCL_CLUSTER_ID_GEN_POWER_CFG, 0, seqNum++ ) ;
Is that good approach?
Do I need to implement Alarm Table?
What is the function of BatteryAlarmMask attribute?
Basically I need some advices how to implement battery low voltage notification in a good way.
Best Regards