<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Zigbee: Usage ZB_ZCL_DECLARE_POWER_CONFIG_ATTRIB_LIST macro with single battery</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/62584/zigbee-usage-zb_zcl_declare_power_config_attrib_list-macro-with-single-battery</link><description>Hi I have an question about use ZB_ZCL_DECLARE_POWER_CONFIG_ATTRIB_LIST macro in case when only one battery used. 
 I&amp;#39;m trying to declare Power Configuration like this 
 
 But when build this code I get error from preprocessor 
 When I&amp;#39;ve investigated</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 25 Feb 2022 20:54:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/62584/zigbee-usage-zb_zcl_declare_power_config_attrib_list-macro-with-single-battery" /><item><title>RE: Zigbee: Usage ZB_ZCL_DECLARE_POWER_CONFIG_ATTRIB_LIST macro with single battery</title><link>https://devzone.nordicsemi.com/thread/355112?ContentTypeID=1</link><pubDate>Fri, 25 Feb 2022 20:54:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:96207b8f-5df8-4593-8b2a-81aca63116a5</guid><dc:creator>jopayne24</dc:creator><description>&lt;p&gt;Sorry to resurrect a long-forgotten thread, but could you clarify how to specify bat_num when invoking ZB_ZCL_DECLARE_POWER_CONFIG_BATTERY_ATTRIB_LIST_EXT? &amp;nbsp;Looking through the&amp;nbsp;&lt;em&gt;Developing with ZBOSS&lt;/em&gt;&amp;nbsp;API reference, its not clear to me how I could set bat_num to 0, 1, ..., n. &amp;nbsp; Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zigbee: Usage ZB_ZCL_DECLARE_POWER_CONFIG_ATTRIB_LIST macro with single battery</title><link>https://devzone.nordicsemi.com/thread/256148?ContentTypeID=1</link><pubDate>Mon, 22 Jun 2020 10:09:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f5192a40-03c5-4825-ac46-7a33ebe69310</guid><dc:creator>Sacculus</dc:creator><description>&lt;p&gt;Hi!&lt;br /&gt;Thank you for your reply!&lt;br /&gt;Yes, temporary I&amp;#39;ve wrote my own definition for this goal. But I hope that this bug will be fixed in nearest releases.&lt;br /&gt;Best regards!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zigbee: Usage ZB_ZCL_DECLARE_POWER_CONFIG_ATTRIB_LIST macro with single battery</title><link>https://devzone.nordicsemi.com/thread/256140?ContentTypeID=1</link><pubDate>Mon, 22 Jun 2020 09:24:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f85641de-b4aa-40eb-ac34-4ba96f1bde20</guid><dc:creator>Marjeris Romero</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Sorry for the late reply. I think this is a bug in the stack and I have registered it internally. In the meantime you can use ZB_ZCL_DECLARE_POWER_CONFIG_BATTERY_ATTRIB_LIST_EXT with just one battery, (for example bat_num 0).&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marjeris&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zigbee: Usage ZB_ZCL_DECLARE_POWER_CONFIG_ATTRIB_LIST macro with single battery</title><link>https://devzone.nordicsemi.com/thread/254954?ContentTypeID=1</link><pubDate>Mon, 15 Jun 2020 10:09:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6009bdda-adde-4eb4-80e8-2c6ffb1c675e</guid><dc:creator>Sacculus</dc:creator><description>&lt;p&gt;In addition to...&lt;br /&gt;I&amp;#39;ve look how was implemented ZB_ZCL_DECLARE_POWER_CONFIG_BATTERY_ATTRIB_LIST_EXT via intermediate macro ZB_ZCL_POWER_CONFIG_BATTERY_ATTRIB_LIST_EXT with pass empty parameter battery_num to it.&lt;/p&gt;
&lt;p&gt;So I think that ZB_ZCL_DECLARE_POWER_CONFIG_ATTRIB_LIST in current realization couldn&amp;#39;t be compiled without error.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>