<?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>Parse PAYLOAD from Zigbee comman</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/75295/parse-payload-from-zigbee-comman</link><description>Hello, 
 
 I am working with Window Covering cluster. 
 
 I receive command ZB_ZCL_WINDOW_COVERING_GO_TO_TILT_PERCENTAGE_CB_ID from my coordinator successfully, but I can&amp;#39;t get the value from the payload. 
 I tried the following, but it is not working</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 19 May 2021 15:20:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/75295/parse-payload-from-zigbee-comman" /><item><title>RE: Parse PAYLOAD from Zigbee comman</title><link>https://devzone.nordicsemi.com/thread/310532?ContentTypeID=1</link><pubDate>Wed, 19 May 2021 15:20:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:57a870ba-4599-4630-a8d5-bcb1775c0e90</guid><dc:creator>KrystofVydra</dc:creator><description>&lt;p&gt;Hello Simon&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have got it working today, I had to implement the custom zcl_ep_handler like this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;    zb_zcl_parsed_hdr_t *p_cmd_info = ZB_BUF_GET_PARAM(bufid, zb_zcl_parsed_hdr_t);

    if (p_cmd_info -&amp;gt; cmd_id == ZB_ZCL_CMD_WINDOW_COVERING_GO_TO_TILT_PERCENTAGE)
    {
      zb_uint8_t cmd_len = zb_buf_len(bufid);
      zb_uint8_t *pin_payload = (zb_uint8_t*) zb_buf_begin(bufid);
      uint8_t new_tilt_percentage = pin_payload[0];&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you very much for help!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Krystof Vydra&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Parse PAYLOAD from Zigbee comman</title><link>https://devzone.nordicsemi.com/thread/310472?ContentTypeID=1</link><pubDate>Wed, 19 May 2021 13:13:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2cf2e5f1-545f-4e3b-b73d-6e5cfa468be3</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Krystof&lt;/p&gt;
&lt;p&gt;I would suggest you start by trying to find out what exactly is&amp;nbsp;not working in the WINDOW_COVERING function(s) you&amp;#39;re using, and what is failing. Do you have any debug information at all that might help us see what error code(s) you&amp;#39;re running into?&lt;/p&gt;
&lt;p&gt;You can check out what parameters should be used by &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_tz_v4.1.0%2Fgroup___z_b___z_c_l___i_n_i_t_i_a_l_i_z_a_t_i_o_n.html&amp;amp;anchor=gga35caa2e3a9ef37535b1f75e0fe919266a42fe7bdb063df4934a0c188478b5587e"&gt;ZB_ZCL_WINDOW_COVERING_GO_TO_TILT_PERCENTAGE_CB_ID in the SDK documentation here&lt;/a&gt;, as they are indeed different from the light bulb cluster if I&amp;#39;m not mistaken.&amp;nbsp;When debugging you should also be able to see what parameters are failing as well, so that would be the place to start out.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>