<?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>connect to right address</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/31328/connect-to-right-address</link><description>Hello everyone I have a problem where I want to know when a node (server) connects to the gateway (client), how can you control which node, for example, turns light on and which node measures the temperature. have tried to look light demo but do not think</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 13 Mar 2018 08:02:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/31328/connect-to-right-address" /><item><title>RE: connect to right address</title><link>https://devzone.nordicsemi.com/thread/124077?ContentTypeID=1</link><pubDate>Tue, 13 Mar 2018 08:02:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fd2d6512-e215-4a66-a9f0-c36bfb01658f</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;The nordic mesh sdk does not currently have a gateway example. By gateway I am guessing you want one node that is able to communicate between the mesh network &amp;amp; the cloud for example.&amp;nbsp;The client is the provisioner in the light switch example, i.e. the device that adds the other devices to the mesh network.&lt;/p&gt;
&lt;p&gt;In the light switch example, the provisioner (client) turns the lights on &amp;amp; off (&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.meshsdk.v1.0.1/md_examples_light_switch_README.html?cp=4_1_0_5_0" target="_blank" rel="noopener noreferrer"&gt;see link&lt;/a&gt;). You could update the server code for example so that all servers can measure the temperature via a temperature sensor. Or you could have a separate server code so that one server measures the temperature &amp;amp; the other servers don&amp;#39;t (i.e. one client FW, one server FW with temperature sensing, one server FW without temperature sensing). If you want temperature sensing, you could make a copy of the light switch example &amp;amp; update the code to read a temperature sensor.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It is good practice when adding code to Nordic SDK examples to include your own .c &amp;amp; .h files so that it is easy to port between different SDK versions later. That way, you know which code you have written. Hope that helps!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>