<?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>Question about using Install Code</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/64847/question-about-using-install-code</link><description>Hi Sir or Madam, 
 I tested examples\zigbee\light_control demo recently and I want to test install code function based on this example, the first step is I add install code in coordinator, then I power up coordinator and bulb(without install code function</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 18 Aug 2020 12:34:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/64847/question-about-using-install-code" /><item><title>RE: Question about using Install Code</title><link>https://devzone.nordicsemi.com/thread/265099?ContentTypeID=1</link><pubDate>Tue, 18 Aug 2020 12:34:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:22be0de6-a3d3-4ec1-a3cc-b83143b9b88f</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;[quote user="Subin Chen"][/quote]&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I already checked the return value of add is RET_OK. Thanks.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;/** Start Zigbee Stack. */&lt;br /&gt; zb_err_code = zboss_start_no_autostart();&lt;br /&gt; ZB_ERROR_CHECK(zb_err_code);&lt;/p&gt;
&lt;p&gt;if (zb_secur_ic_add(dut_ieee_addr1, ZB_IC_TYPE_128, install_code) != RET_OK){&lt;br /&gt; }&lt;br /&gt; /* Set device installcode policy */&lt;br /&gt; zb_set_installcode_policy(ZB_TRUE);&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;You may mean to say that you have already checked while debugging, but this snippet doesn&amp;#39;t check the return value of zb_secur_ic_add(), just in case you think this snippet checks, and your application is supposed to handle the exception if one occurs.&lt;/p&gt;
&lt;p&gt;This is because the {} brackets are empty. Just like this will print &amp;quot;a is equal to b&amp;quot;:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;uint8_t a = 1;
uint8_t b = 2;

if (a == b)     //check if a == b
{
    
}

NRF_LOG_INFO(&amp;quot;a is equal to b&amp;quot;);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m glad to hear that you found out the issue &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Question about using Install Code</title><link>https://devzone.nordicsemi.com/thread/264973?ContentTypeID=1</link><pubDate>Tue, 18 Aug 2020 05:36:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:09e73359-9c4d-4897-985c-57a43b9a6f68</guid><dc:creator>Subin Chen</dc:creator><description>&lt;p&gt;Hi Edvin,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Sorry for my misunderstanding. In fact the router is not join success, and the failure I found it is caused by the order of IEEE Address which I set on Coordinator is not correct.&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Question about using Install Code</title><link>https://devzone.nordicsemi.com/thread/264962?ContentTypeID=1</link><pubDate>Tue, 18 Aug 2020 00:47:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:edffa684-5b1a-4226-8e6b-a140a866748a</guid><dc:creator>Subin Chen</dc:creator><description>&lt;p&gt;Thanks Edvin for your reply.&lt;/p&gt;
&lt;p&gt;nRF5_SDK_for_Thread_and_Zigbee_v4.1.0_32ce5f8 is what I use. And I called this after&amp;nbsp;&lt;span&gt;zboss_start_no_autostart(). I already checked the return value of add is RET_OK. Thanks.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;/** Start Zigbee Stack. */&lt;br /&gt; zb_err_code = zboss_start_no_autostart();&lt;br /&gt; ZB_ERROR_CHECK(zb_err_code);&lt;/p&gt;
&lt;p&gt;if (zb_secur_ic_add(dut_ieee_addr1, ZB_IC_TYPE_128, install_code) != RET_OK){&lt;br /&gt; }&lt;br /&gt; /* Set device installcode policy */&lt;br /&gt; zb_set_installcode_policy(ZB_TRUE); &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Question about using Install Code</title><link>https://devzone.nordicsemi.com/thread/264880?ContentTypeID=1</link><pubDate>Mon, 17 Aug 2020 13:10:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a4f0913-c99d-423d-acb9-8784bea6eae1</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;What SDK version are you using?&lt;/p&gt;
&lt;p&gt;So where do you call this, and what does zb_secur_ic_add() return?&lt;/p&gt;
&lt;p&gt;Please be aware that your check:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;if (zb_secur_ic_add(dut_ieee_addr, ZB_IC_TYPE_128, install_code) != RET_OK)
{
    // you are not doing anything here.
}
zb_set_installcode_policy(ZB_TRUE);&lt;/pre&gt;&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>