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
  • Hello,

    I am sorry for the late reply. I tried looking a bit into this, but unfortunately I couldn't find anything from us that is using this, other than that it is used in zb_zcl_power_config.h in the definition of the macro ZB_ZCL_DECLARE_POWER_CONFIG_BATTERY_ATTRIB_LIST_EXT(). 

    Do you have anything that sends the updated voltage that is working that I can have a look at?

    Best regards,

    Edvin

Reply
  • Hello,

    I am sorry for the late reply. I tried looking a bit into this, but unfortunately I couldn't find anything from us that is using this, other than that it is used in zb_zcl_power_config.h in the definition of the macro ZB_ZCL_DECLARE_POWER_CONFIG_BATTERY_ATTRIB_LIST_EXT(). 

    Do you have anything that sends the updated voltage that is working that I can have a look at?

    Best regards,

    Edvin

Children
No Data
Related