<?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>Error : opcode status field: 6 when bind appkey for Health server in MESH v2.1</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/34861/error-opcode-status-field-6-when-bind-appkey-for-health-server-in-mesh-v2-1</link><description>Hi all , when I combine light switch server and remote server in 1 Node and use Provisioner Node for provisioning and config for it . I have error 
 Log in provisioner : 
 
 Opcode = 6 is error . But number 6 indicate for what ? 
 In Node : If i insert</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 26 Jun 2018 14:39:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/34861/error-opcode-status-field-6-when-bind-appkey-for-health-server-in-mesh-v2-1" /><item><title>RE: Error : opcode status field: 6 when bind appkey for Health server in MESH v2.1</title><link>https://devzone.nordicsemi.com/thread/137715?ContentTypeID=1</link><pubDate>Tue, 26 Jun 2018 14:39:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9d644570-b6d5-4a17-b3b8-fabc1ce885b7</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I see that nobody has answered this one yet so I thought I should look into it. I am very sorry that you have not gotten any response previously.&lt;/p&gt;
&lt;p&gt;I found that the status code is an error code, and it is the enumeration access_status_t as defined in access_status.h.&lt;/p&gt;
&lt;p&gt;Access status 6 is &lt;code&gt;ACCESS_STATUS_KEY_INDEX_ALREADY_STORED&lt;/code&gt;, and the explanatory documentation string is &amp;quot;The key with given index is already stored in the node with a different value.&amp;quot;&lt;/p&gt;
&lt;p&gt;The keys (devkey and appkeys) are stored in a table, and if you try to add multiple keys at the same location in that table it will fail. For instance, &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.meshsdk.v2.0.1%2Fgroup__DEVICE__STATE__MANAGER__APP__KEYS.html&amp;amp;anchor=gaef63f7a1e24619936863885ec6120f35"&gt;dsm_appkey_add()&lt;/a&gt; adds an application key to that table, and the first argument (&lt;code&gt;app_key_id&lt;/code&gt;) is the index to use in the key table.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>