<?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>How can get appkey handle on light switch proxy server?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/36207/how-can-get-appkey-handle-on-light-switch-proxy-server</link><description>Hi all, I want to add light switch client to light switch proxy server . But I dont know how to get appkey handle for bind to light switch client . Pls , help me !! Thank very much</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 11 Jul 2018 08:15:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/36207/how-can-get-appkey-handle-on-light-switch-proxy-server" /><item><title>RE: How can get appkey handle on light switch proxy server?</title><link>https://devzone.nordicsemi.com/thread/139684?ContentTypeID=1</link><pubDate>Wed, 11 Jul 2018 08:15:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c79503d7-5c94-4f56-bd83-e000fb45a666</guid><dc:creator>Giang</dc:creator><description>&lt;p&gt;Thank you , I tried !!!&lt;/p&gt;
&lt;p&gt;Can you show my question :&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/36304/pwm-not-run-with-mesh"&gt;devzone.nordicsemi.com/.../pwm-not-run-with-mesh&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can get appkey handle on light switch proxy server?</title><link>https://devzone.nordicsemi.com/thread/139682?ContentTypeID=1</link><pubDate>Wed, 11 Jul 2018 07:59:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:01201928-f2dd-4aa6-bdba-9506859d16f5</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Ok, so you want to only config the server and then use the same configuration for the client so you don&amp;#39;t need to configure the client seprately ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If it&amp;#39;s the case, you can have a look at&amp;nbsp;&amp;nbsp;this line&lt;/p&gt;
&lt;p&gt;&lt;em&gt;if (p_message-&amp;gt;opcode.opcode == CONFIG_OPCODE_MODEL_APP_BIND)&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;in config_server.c . This is where we bind the model to an app key when we configure a model (either server or client). You can use the data there to apply for your client. You would need to either modify the config_server.c so that it would also config your client, or try to make a call back into main.c and then call&amp;nbsp;access_model_application_bind() from there.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can get appkey handle on light switch proxy server?</title><link>https://devzone.nordicsemi.com/thread/139595?ContentTypeID=1</link><pubDate>Tue, 10 Jul 2018 14:03:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:69e345c1-2923-47f1-8e00-5e2a5d1ce860</guid><dc:creator>Giang</dc:creator><description>&lt;p&gt;Yeah,&amp;nbsp;&lt;span lang="en"&gt;exactly I want to do as your demo. I want to add light switch client model to light switch proxy server .&amp;nbsp;&lt;span&gt;&amp;nbsp;The appkey handle is assigned to the model automatically by the config server when the node is configured by the provisioner, so I want get appkey handle of light switch server model for bind to light switch client model . But&amp;nbsp;I can not find the code to get it . Present, I fixed appkey handle = 0 and bind to light switch client model and project can run as your demo . But I want get it by function code . Can you show me !!! Thank&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can get appkey handle on light switch proxy server?</title><link>https://devzone.nordicsemi.com/thread/139559?ContentTypeID=1</link><pubDate>Tue, 10 Jul 2018 12:18:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a56275d3-43aa-494e-8c51-b78f7e23adb0</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Giang,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please point me to the specific place in code you are struggling with ? The appkey handle is assigned to the model automatically by the config server when the node is configured by the provisioner. You can have a look at &lt;a href="https://www.youtube.com/watch?v=XthbU9NP0Yg"&gt;this demo, &lt;/a&gt;we have both light switch server and client on the thingy, and simply bind the app key to the client (and the server if we want to use server) using the app.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>