How to add battery percentage report to ZigBee?

Hi,

I´m developing a small ZigBee based sensor with Zephyr and the NCS and wondering how to add a remaining battery (%-based) attribute. The macro ZB_ZCL_DECLARE_POWER_CONFIG_ATTRIB_LIST only supports battery voltage and the macro ZB_ZCL_POWER_CONFIG_BATTERY_ATTRIB_LIST_EXT throws different errors when I try to use it.

How can I do it?

Parents Reply Children
Related