<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Wireless MCU中的主题 I wrote a string attribute to the coordinator in TestUI</title>
    <link>https://community.nxp.com/t5/Wireless-MCU/I-wrote-a-string-attribute-to-the-coordinator-in-TestUI/m-p/1763930#M16028</link>
    <description>&lt;P&gt;Hi,everyone:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;I wrote a string attribute to the coordinator in TestUI, it responsed 0x15.&lt;BR /&gt;&lt;BR /&gt;Does not support sending character attributes?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-11-27 at 17.15.30.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/251573iBD0599FAA0D1C042/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2023-11-27 at 17.15.30.png" alt="Screenshot 2023-11-27 at 17.15.30.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 27 Nov 2023 09:24:36 GMT</pubDate>
    <dc:creator>Janson</dc:creator>
    <dc:date>2023-11-27T09:24:36Z</dc:date>
    <item>
      <title>I wrote a string attribute to the coordinator in TestUI</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/I-wrote-a-string-attribute-to-the-coordinator-in-TestUI/m-p/1763930#M16028</link>
      <description>&lt;P&gt;Hi,everyone:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;I wrote a string attribute to the coordinator in TestUI, it responsed 0x15.&lt;BR /&gt;&lt;BR /&gt;Does not support sending character attributes?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-11-27 at 17.15.30.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/251573iBD0599FAA0D1C042/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2023-11-27 at 17.15.30.png" alt="Screenshot 2023-11-27 at 17.15.30.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2023 09:24:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/I-wrote-a-string-attribute-to-the-coordinator-in-TestUI/m-p/1763930#M16028</guid>
      <dc:creator>Janson</dc:creator>
      <dc:date>2023-11-27T09:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: I wrote a string attribute to the coordinator in TestUI</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/I-wrote-a-string-attribute-to-the-coordinator-in-TestUI/m-p/1764282#M16034</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/218089"&gt;@Janson&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;Hope you are doing well.&lt;/P&gt;
&lt;P&gt;You can try the following:&lt;/P&gt;
&lt;P&gt;Add the following portion of code inside APP_u16ZncWriteDataPattern in app_zcl_event_handler.c&lt;/P&gt;
&lt;PRE&gt;case (E_ZCL_CSTRING):&lt;BR /&gt;{&lt;BR /&gt;    uint8 size=*pu8Struct;&lt;BR /&gt;    *( uint8 * ) pu8Data++ =&amp;nbsp; *pu8Struct++;&lt;BR /&gt;    memcpy(pu8Data,pu8Struct,size);&lt;BR /&gt;    break;&lt;BR /&gt;}&lt;/PRE&gt;
&lt;P&gt;Locate the following code inside APP_eSendWriteAttributesRequest in app_Znc_cmds.c:&lt;/P&gt;
&lt;PRE&gt;u16offset += APP_u16ZncWriteDataPattern ( &amp;amp;pu8Data [ u16offset ],&lt;BR /&gt;pu8AttributeRequestList [ i + 2 ],&lt;BR /&gt;&amp;amp;pu8AttributeRequestList [ i + 3 ],&lt;BR /&gt;u16Size );&lt;/PRE&gt;
&lt;P&gt;and add the following lines after that:&lt;/P&gt;
&lt;PRE&gt;if (pu8AttributeRequestList[i+2]==E_ZCL_CSTRING)&lt;BR /&gt;break;&lt;/PRE&gt;
&lt;P&gt;Try writing a 16 bytes (max) attribute data. Hope it helps.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Eduardo.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2023 20:21:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/I-wrote-a-string-attribute-to-the-coordinator-in-TestUI/m-p/1764282#M16034</guid>
      <dc:creator>EduardoZamora</dc:creator>
      <dc:date>2023-11-27T20:21:32Z</dc:date>
    </item>
    <item>
      <title>Re: I wrote a string attribute to the coordinator in TestUI</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/I-wrote-a-string-attribute-to-the-coordinator-in-TestUI/m-p/1764415#M16039</link>
      <description>&lt;P&gt;It errors&lt;/P&gt;&lt;P class=""&gt;a label can only be part of a statement and a declaration is not a statement&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1701137288807.jpg" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/251725i5CBBC3E81324CC26/image-size/large?v=v2&amp;amp;px=999" role="button" title="1701137288807.jpg" alt="1701137288807.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2023 02:08:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/I-wrote-a-string-attribute-to-the-coordinator-in-TestUI/m-p/1764415#M16039</guid>
      <dc:creator>Janson</dc:creator>
      <dc:date>2023-11-28T02:08:32Z</dc:date>
    </item>
    <item>
      <title>Re: I wrote a string attribute to the coordinator in TestUI</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/I-wrote-a-string-attribute-to-the-coordinator-in-TestUI/m-p/1765026#M16053</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Please, wrap the content of the case in braces { }:&lt;/P&gt;
&lt;PRE&gt;case (E_ZCL_CSTRING):&lt;BR /&gt;&lt;STRONG&gt;{&lt;/STRONG&gt;&lt;BR /&gt;    uint8 size=*pu8Struct;&lt;BR /&gt;    *( uint8 * ) pu8Data++ =&amp;nbsp; *pu8Struct++;&lt;BR /&gt;    memcpy(pu8Data,pu8Struct,size);&lt;BR /&gt;    break;&lt;BR /&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;/PRE&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Eduardo.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2023 15:45:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/I-wrote-a-string-attribute-to-the-coordinator-in-TestUI/m-p/1765026#M16053</guid>
      <dc:creator>EduardoZamora</dc:creator>
      <dc:date>2023-11-28T15:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: I wrote a string attribute to the coordinator in TestUI</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/I-wrote-a-string-attribute-to-the-coordinator-in-TestUI/m-p/1765453#M16059</link>
      <description>&lt;P&gt;It works ,thank you, but I encounter new problem .&amp;nbsp;&lt;BR /&gt;where can I get a attribute value in section code from router&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;such as&amp;nbsp;&lt;BR /&gt;APP_ZCL_cbEndpointCallback&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2023 07:18:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/I-wrote-a-string-attribute-to-the-coordinator-in-TestUI/m-p/1765453#M16059</guid>
      <dc:creator>Janson</dc:creator>
      <dc:date>2023-11-29T07:18:27Z</dc:date>
    </item>
    <item>
      <title>Re: I wrote a string attribute to the coordinator in TestUI</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/I-wrote-a-string-attribute-to-the-coordinator-in-TestUI/m-p/1765966#M16070</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Please, consider taking a look at the JN-UG-3132 ZigBee3 Cluster Library (from JN5189 SDK &amp;gt; docs &amp;gt; wireless &amp;gt; Zigbee), Chapter 3 ZCL Fundamentals and Features, Section 2.3 Accessing Attributes.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Eduardo.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2023 22:09:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/I-wrote-a-string-attribute-to-the-coordinator-in-TestUI/m-p/1765966#M16070</guid>
      <dc:creator>EduardoZamora</dc:creator>
      <dc:date>2023-11-29T22:09:19Z</dc:date>
    </item>
  </channel>
</rss>

