<?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>Reporting integer and octet string attributes on value change</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/75061/reporting-integer-and-octet-string-attributes-on-value-change</link><description>Hello 
 I&amp;#39;m using the CLI example as ZC and a custom endnode based on the freeRTOS multisensor example (from nRF5 SDK for Thread and Zigbee v4.1.0). Im trying to send a counter and an octet string via reporting only on status changes, but when configuring</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 21 May 2021 10:33:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/75061/reporting-integer-and-octet-string-attributes-on-value-change" /><item><title>RE: Reporting integer and octet string attributes on value change</title><link>https://devzone.nordicsemi.com/thread/310996?ContentTypeID=1</link><pubDate>Fri, 21 May 2021 10:33:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca7e81e5-d36c-461e-a998-b99451083074</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am not certain about this, as there are no attributes in the Zigbee cluster library specification that are of the type octet string that are reportable. All the clusters that are octet strings are only readable and/or writable, so following this specification, there should&amp;nbsp;be no need to support octet strings when it comes to attribute reporting. However,&amp;nbsp;as far as I know, there are no character string reportable attributes either, so I cannot think of any reason why octet string should cause problems, but not character string.&lt;/p&gt;
&lt;p&gt;One suggestion is to look at how read attribute value is done in CLI, and compare that to attribute reporting, as the read attribute should at least have support for octet strings, as all attributes of that type in the ZCL spec are readable. You can find the CLI library for attribute reporting in the file&amp;nbsp;components/zigbee/cli/zigbee_cli_cmd_attr_report.c, and for attribute read/write in&amp;nbsp;components/zigbee/cli/zigbee_cli_cmd_attr.c. The relevant functions would be&amp;nbsp;cli_agent_ep_handler_report() and&amp;nbsp;cli_agent_ep_handler_attr(), which are handlers to intercept the frames for attribute reporting and read attribute respectively, and the print&amp;nbsp;functions for the two,&amp;nbsp;print_attr_update() and&amp;nbsp;print_read_attr_response(), which are called in the handlers. Please be aware that the print function for zcl attr read&amp;nbsp;command will print out the received response, while the print function for attribute reporting it will add the attribute value to the log, and it will only be printed if you enable displaying of reports.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reporting integer and octet string attributes on value change</title><link>https://devzone.nordicsemi.com/thread/310654?ContentTypeID=1</link><pubDate>Thu, 20 May 2021 09:16:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc57d0af-b38b-4ff3-9314-ca826050fb56</guid><dc:creator>vilpih</dc:creator><description>&lt;p&gt;Is there anywhere I need to add support for reporting octet strings in CLI example?&lt;/p&gt;
&lt;p&gt;Reporting works fine when I change from ZB_ZCL_ATTR_TYPE_OCTET_STRING to&amp;nbsp;ZB_ZCL_ATTR_TYPE_CHAR_STRING&lt;/p&gt;
&lt;p&gt;I &lt;span&gt;previously added support for printing reading of octet strings in the example..&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reporting integer and octet string attributes on value change</title><link>https://devzone.nordicsemi.com/thread/310407?ContentTypeID=1</link><pubDate>Wed, 19 May 2021 11:30:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a20df30-5dc2-44bc-8434-2ffa17a05a35</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Good to hear that you are able to report on status change!&lt;/p&gt;
&lt;p&gt;I am afraid there is no way to increase this as far as I know. Most of the actions related to the attribute reporting configuration are implemented as internal parts of the ZBOSS stack, and thus not visible to or configurable by the application.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reporting integer and octet string attributes on value change</title><link>https://devzone.nordicsemi.com/thread/310307?ContentTypeID=1</link><pubDate>Wed, 19 May 2021 07:26:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e87e57e6-56b3-406f-b744-16365a6d2d65</guid><dc:creator>vilpih</dc:creator><description>&lt;p&gt;Thanks, I have modified the CLI example and reporting on status change works fine.&lt;br /&gt;It&amp;#39;s a little bit weird that there is an error message, but the reporting seems to work anyway and attrib read works without any issues.&lt;/p&gt;
&lt;p&gt;By the way, is there a way to increase the number of &amp;quot;message buffers&amp;quot; for reporting. Quite often the events are over written before they are sent.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reporting integer and octet string attributes on value change</title><link>https://devzone.nordicsemi.com/thread/309541?ContentTypeID=1</link><pubDate>Wed, 12 May 2021 14:25:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce0f8a07-f4af-4747-80bc-883077c33148</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;In order to configure attribute reporting for status change you need to&amp;nbsp;modify the CLI example. One of my colleagues did this in the comment&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/65547/zigbee-attribute-reporting-only-on-value-change/270995#270995"&gt;here&lt;/a&gt;&amp;nbsp;in another case. There they tested it using the multi sensor example and configured it to report after a button press, but you should be able to use this and change it to report on value change. Could you take a look at how he implemented this and see if you are able to use this in your project?&lt;/p&gt;
&lt;p&gt;Additionally, there seem to be something wrong with the implementation of your attribute, or the command you are using to subscribe to that attribute, since you are getting an error. Status 134 is&amp;nbsp;ZB_ZCL_STATUS_UNSUP_ATTRIB, which is unsupported attribute. I cannot see anything wrong in the code where you define the attributes. Did you look at the multi sensor example and the pressure measurement cluster when creating your custom cluster? If not, I recommend checking it out, as the pressure measurement is implemented in the application, available as a reference when implementing a custom cluster.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>