Hi
How do pass bat_num into the declaration for the power config attribute list? Perhaps I overlooked it, but it wasn't evident to me when reviewing the Developing with Zboss API reference. Moreover, when I make the declaration in the typical way:
ZB_ZCL_DECLARE_POWER_CONFIG_BATTERY_ATTRIB_LIST_EXT(power_config_attr_list,
&battery_voltage,
&battery_size,
&battery_quantity,
&battery_rated_voltage,
&battery_alarm_mask,
&battery_voltage_min_threshold,
&battery_percentage_remaining,
&battery_voltage_threshold1,
&battery_voltage_threshold2,
&battery_voltage_threshold3,
&battery_percentage_min_threshold,
&battery_percentage_threshold1,
&battery_percentage_threshold2,
&battery_percentage_threshold3,
&battery_alarm_state);
I get the error "identifier "ZB_ZCL_ATTR_POWER_CONFIG_BATTERYbat_num_VOLTAGE_ID" is undefined."
I see that ZB_ZCL_DECLARE_POWER_CONFIG_BATTERY_ATTRIB_LIST_EXT(...) is defined to take the pointers I assigned above, but I also see that ZB_ZCL_POWER_CONFIG_BATTERY_ATTRIB_LIST_EXT(bat_num,....) includes the requirement of bat_num to be sent through.
Is passing bat_num shown or explained anywhere in the documentation?
Thank you