<?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 Light example custom values send and receive</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/62680/zigbee-light-example-custom-values-send-and-receive</link><description>#define ZB_ZCL_ON_OFF_SEND_REQ( \ buffer, addr, dst_addr_mode, dst_ep, ep, prof_id, dis_default_resp, command_id, cb) \ { \ zb_uint8_t* ptr = ZB_ZCL_START_PACKET_REQ(buffer) \ ZB_ZCL_CONSTRUCT_SPECIFIC_COMMAND_REQ_FRAME_CONTROL(ptr, dis_default_resp)</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 17 Jun 2020 11:59:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/62680/zigbee-light-example-custom-values-send-and-receive" /><item><title>RE: Zigbee Light example custom values send and receive</title><link>https://devzone.nordicsemi.com/thread/255514?ContentTypeID=1</link><pubDate>Wed, 17 Jun 2020 11:59:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e4e1f4c-5474-4228-a481-39cb943706f0</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I would recommend that you start by trying to read these using the example found in SDK\examples\zigbee\experimental\cli\cli_agent_router.&lt;/p&gt;
&lt;p&gt;If you check out the &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_tz_v4.1.0/zigbee_multi_sensor_example.html?cp=7_3_3_8_5_3_1#zigbee_multi_sensor_example_test" rel="noopener noreferrer" target="_blank"&gt;test description for the multi sensor example&lt;/a&gt;, you can see how to use the CLI example to subscribe to zigbee attributes.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Hints:&lt;/p&gt;
&lt;p&gt;The command to find the device with an on_off cluster is:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;&amp;gt; zdo match_desc 0xffff 0xffff 0x0104 1 0x0006 0&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;But perhaps the multi sensor example is a better starting point if you want to send custom commands. Either way, I would recommend that you go through the test description for the link using the multi sensor example to get familiar with the CLI example, and how the clusters work.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;br /&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>