<?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 - Discover Attribute Request / Response</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/61399/zigbee---discover-attribute-request-response</link><description>For a customer I am developing a Zigbee coordinator / Gateway with the nRF52840. As hardware I am using the nRF52840 Development Kit v2.0.1. As Software basis I use the “Zigbee cli example - Project” from the Thread and Zigbee SDK v4.0.0. 
 So far a lot</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 10 Jun 2020 11:51:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/61399/zigbee---discover-attribute-request-response" /><item><title>RE: Zigbee - Discover Attribute Request / Response</title><link>https://devzone.nordicsemi.com/thread/254240?ContentTypeID=1</link><pubDate>Wed, 10 Jun 2020 11:51:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c9fd37e5-3b44-4ae4-b5b5-f656ddd4d5cc</guid><dc:creator>L.Hoffmann</dc:creator><description>&lt;p&gt;Thanks, that helped a lot!&lt;/p&gt;
&lt;p&gt;Best Regards&lt;/p&gt;
&lt;p&gt;Lutz&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zigbee - Discover Attribute Request / Response</title><link>https://devzone.nordicsemi.com/thread/251639?ContentTypeID=1</link><pubDate>Tue, 26 May 2020 08:47:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e1401608-58e7-477b-b905-a9850f0b35b1</guid><dc:creator>Marjeris Romero</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Have you seen CLI command &amp;#39;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_tz_v4.1.0%2Fzigbee_example_cli_reference.html&amp;amp;anchor=readattr"&gt;zcl attr read&lt;/a&gt;&amp;#39; in the CLI example?&lt;/p&gt;
&lt;p&gt;If you goal is to access the contents of the response package you need to intercept the ZCL response. You need to register a endpoint handler with ZB_AF_SET_ENDPOINT_HANDLER() to intercept the ZCL packets, see more information in &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_tz_v4.1.0/using_zigbee__z_c_l.html?cp=7_3_3_4_1_8#process_zcl_cmd"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Inside the handler you should check the command direction, cluster ID and command ID, and call the dedicated API for getting the contents of the read attribute response frame ZB_ZCL_GENERAL_GET_NEXT_READ_ATTR_RES, then free the buffer and return ZB_TRUE, otherwise return ZB_FALSE to indicate to the stack to perform the default command processing.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;See &amp;quot;Implementing algorithm for overriding the handling of ZCL commands&amp;quot; in the link I provided above.&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 - Discover Attribute Request / Response</title><link>https://devzone.nordicsemi.com/thread/249953?ContentTypeID=1</link><pubDate>Thu, 14 May 2020 12:23:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0552cad0-5472-4426-91cd-71b210abb2f4</guid><dc:creator>L.Hoffmann</dc:creator><description>&lt;p&gt;I guess I found part of the answer. The parameter for the callback function send with the ZB_ZCL_GENERAL_DISC_READ_ATTR_REQ request is &amp;ldquo;for getting command send status&amp;ldquo;. Ok, my fault.&lt;/p&gt;
&lt;p&gt;But where and when should my function cmd_zb_zcl_getDiscReadAtte_req_cb(&amp;hellip;) be called?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>