<?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 attribute report enabling automatically</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/49781/zigbee-attribute-report-enabling-automatically</link><description>Hey everybody! 
 I&amp;#39;m working with the zigbee cli agent router example. 
 Can anybody help, how can i get zigbee report automatically? The problem is that i have to enable info in the terminal to get reports. How can i get those whitout the command log</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 15 Jul 2019 11:30:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/49781/zigbee-attribute-report-enabling-automatically" /><item><title>RE: Zigbee attribute report enabling automatically</title><link>https://devzone.nordicsemi.com/thread/198428?ContentTypeID=1</link><pubDate>Mon, 15 Jul 2019 11:30:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:974ecc53-ffea-4203-9160-f35f8232001d</guid><dc:creator>Marjeris Romero</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You will need to see inside the example code which Zigbee functions are called in the CLI example and implement these functions yourself in your code. In components/zigbee/cli/zigbee_cli_cmd_zdo.c you can find the functions called for CLI zdo commands, such as &amp;quot;zdo bind on&amp;quot;.&lt;/p&gt;
&lt;p&gt;The zcl commands are listed in zigbee_cli_cmd_zcl.c. As you can see, the zcl_subscribe on calls m_sub_subscribe() -&amp;gt;&amp;nbsp;cmd_zb_subscribe(), which is found in components/zigbee/cli/zigbee_cli_cmd_attr_report.c.&lt;/p&gt;
&lt;p&gt;Reports are received by a function cli_agent_ep_handler_report , which gets called from cli_agent_ep_handler which is registered in main function of cli_agent_router example with ZB_AF_SET_ENDPOINT_HANDLER macro.&lt;/p&gt;
&lt;p&gt;See also my answer in &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/46596/zigbee-find-bind-subscribe/184217#184217"&gt;this case&lt;/a&gt;.&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>