<?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: implement callback called before attribute report reported because of Configure Report command</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/46576/zigbee-implement-callback-called-before-attribute-report-reported-because-of-configure-report-command</link><description>Hi! It is nice that the SDK implements internally the attribute reporting commands mechanism, but the thing is that I want to know when the reporting occurs, when implementing a server role for a specific cluster. 
 Consider such case that another client</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 10 May 2019 09:22:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/46576/zigbee-implement-callback-called-before-attribute-report-reported-because-of-configure-report-command" /><item><title>RE: ZigBee: implement callback called before attribute report reported because of Configure Report command</title><link>https://devzone.nordicsemi.com/thread/186340?ContentTypeID=1</link><pubDate>Fri, 10 May 2019 09:22:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f009f4c-8e6a-48e5-a3ca-89f0fe6d5ec5</guid><dc:creator>KKoovalsky</dc:creator><description>&lt;p&gt;Ok,&lt;br /&gt;&lt;br /&gt;then I would like to raise a feature request: it would be nice to have a macro:&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;ZB_ZCL_REGISTER_PRE_REPORT_CB&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;which will allow to register a callback which is called before sending a Attribute Report Response.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ZigBee: implement callback called before attribute report reported because of Configure Report command</title><link>https://devzone.nordicsemi.com/thread/186242?ContentTypeID=1</link><pubDate>Thu, 09 May 2019 15:01:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b86d04a0-a6d7-4495-92ca-fce7d56aeea8</guid><dc:creator>Marjeris Romero</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I understand what you are asking about now, but unfortunately no there is such callback. What you could do is read ZB_ZCL_GET_REPORTING_FLAG(rep_info, ZB_ZCL_REPORT_ATTR) after each zboss_main_loop_iteration() and then taking the measurement. The rep_info you can get from&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;zb_zcl_reporting_info_t* zb_zcl_find_reporting_info(  zb_uint8_t ep,

                                                      zb_uint16_t cluster_id,

                                                      zb_uint8_t cluster_role,

                                                      zb_uint16_t attr_id);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The problem with this is that you never know if somebody subscribed to reporting through attribute value changes instead of periodically report, so there could be a case when you don&amp;#39;t measure the value at all.&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: implement callback called before attribute report reported because of Configure Report command</title><link>https://devzone.nordicsemi.com/thread/185376?ContentTypeID=1</link><pubDate>Mon, 06 May 2019 08:41:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e7a3fed3-55ae-403a-a2ea-9e96cf5beb03</guid><dc:creator>KKoovalsky</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;I know how to use attribute reporting. This is not what I asked for. I asked for synchronization between the Attribute Reporting and taking a measurement. In the multi_sensor example, the measurement is taken each one second. This is nonsense for me - why should I wake up my chip each one second if the attribute is reported each ten minute. I want to take the measurement just before reporting the attribute. This is what I asked for. I need some callback to be called just before reporting an attribute. There is nothing about that in the multi_sensor examples and in the CLI example.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ZigBee: implement callback called before attribute report reported because of Configure Report command</title><link>https://devzone.nordicsemi.com/thread/184609?ContentTypeID=1</link><pubDate>Tue, 30 Apr 2019 13:39:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d7fbfc3a-ebcb-4c26-a870-5e757f791a1d</guid><dc:creator>Marjeris Romero</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Have you taken a look at how attribute reporting is implemented in the &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.thread_zigbee.v3.0.0%2Fzigbee_multi_sensor_example.html&amp;amp;cp=5_2_3_5_4_4"&gt;multi_sensor&lt;/a&gt; and the CLI example in the SDK? I think this will give you a good starting point for implementing temperature reporting.&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></channel></rss>