<?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 to send mesh messages from client to a specific server</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/35795/how-to-send-mesh-messages-from-client-to-a-specific-server</link><description>Hello, 
 I am using the light-switch example and I want to send a message or let say get the status of led of a particular server node....so how do I do that? 
 How to address them individually ..as the provisioner already assigns the addresses right</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 24 Jul 2018 11:14:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/35795/how-to-send-mesh-messages-from-client-to-a-specific-server" /><item><title>RE: how to send mesh messages from client to a specific server</title><link>https://devzone.nordicsemi.com/thread/141127?ContentTypeID=1</link><pubDate>Tue, 24 Jul 2018 11:14:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:97c6ecd8-eb09-4eec-b47e-892061a6df6b</guid><dc:creator>Nakul Nair</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/arunbm123"&gt;arunbm123&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;According to my knowledge only the 1st 2 devices that get provisioned have unicast address then after it is divided into odd and even group. So we can send message to server 3 (which belongs to odd group so therefore we have to set the odd address in the&amp;nbsp;&lt;span&gt;simple_on_off_client_set() function&lt;/span&gt;) but that message will also be relayed to other nodes in that group.&lt;/p&gt;
&lt;p&gt;Probably you have to tweak the node_setup.c file in provisioner to change the addressing style if you want to send messages to a specific server.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to send mesh messages from client to a specific server</title><link>https://devzone.nordicsemi.com/thread/141025?ContentTypeID=1</link><pubDate>Mon, 23 Jul 2018 16:31:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:036cfe4b-0853-410a-af42-68dc2f67b601</guid><dc:creator>arunbm123</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/bjorn-kvaale"&gt;Bjørn Kvaale&lt;/a&gt;&amp;nbsp; As you mentioned&amp;nbsp;&lt;span&gt;. The simple_on_off_client_set() function will send a unicast message to the first provisioned &amp;amp; configured server when button 1 is pressed on the client.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Probably Nakul Nair wants to ask How to send Message to for example 3 server&lt;/p&gt;
&lt;p&gt;i have same question..&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to send mesh messages from client to a specific server</title><link>https://devzone.nordicsemi.com/thread/138491?ContentTypeID=1</link><pubDate>Mon, 02 Jul 2018 11:28:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d7f813d-85b5-4458-abff-54f65a343f07</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;You need to use the proxy client &amp;amp; proxy server examples. These two examples enable connection over smartphones via PB-GATT. Then, you can test the app by following a similar setup to the nrf mesh youtube video. Configure the proxy client &amp;amp; server nodes like shown in the video, but then instead of adding a group publication address in the client node, add the unicast address (e.g. 0006) for the server node instead.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;There is a also small bug in the client_publication_configured(void) function in the proxy client example.&lt;/p&gt;
&lt;p&gt;At the moment, the client_publication_configured function requires all four servers to be&amp;nbsp;provisioned before you can publish a unicast or broadcast message.&lt;/p&gt;
&lt;p&gt;By changing the function to this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static bool client_publication_configured(uint32_t button_pressed)
{
    dsm_handle_t pub_addr_handle;

    if (access_model_publish_address_get(m_clients[button_pressed].model_handle, &amp;amp;pub_addr_handle) == NRF_SUCCESS)
    {
        if (pub_addr_handle == DSM_HANDLE_INVALID)
        {
            return false;
        }
    }
    else
    {
        return false;
    }
    return true;
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;it should work. Then, you should be able to press button 1 on the proxy client to toggle the LED of the proxy_server node.&lt;/p&gt;
&lt;p&gt;It seems like the iOS device is setting a small connection interval &amp;amp; uses most of the timeslot for the mesh, leading to multiple calls to &amp;quot;Device is busy&amp;quot; on the proxy_client when pressing button 1 on the client. For now, you should be able to see quicker speeds if you disconnect from the mesh network on the nrf mesh app.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to send mesh messages from client to a specific server</title><link>https://devzone.nordicsemi.com/thread/138244?ContentTypeID=1</link><pubDate>Fri, 29 Jun 2018 09:46:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ba6c7f9-59e1-4354-ad0f-db6dd762e18b</guid><dc:creator>Nakul Nair</dc:creator><description>&lt;p&gt;I understand that&amp;nbsp;&lt;span&gt;dsm_address_get() function gets us the address. But how to set a custom address like it is done in the nrf Mesh app video..in that unicast address can be set from thee app itself after getting provisioned...how to implement that in light-switch client?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to send mesh messages from client to a specific server</title><link>https://devzone.nordicsemi.com/thread/137900?ContentTypeID=1</link><pubDate>Wed, 27 Jun 2018 12:51:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:680032a4-7d26-42a1-8681-af9464138c53</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;You want to use the unicast address for sending messages to a particular node. You can find out how the light switch client node sends unicast messages to the server by taking a look at the button_event_handler() in the main.c file. The simple_on_off_client_set() function will send a unicast message to the first provisioned &amp;amp; configured server when button 1 is pressed on the client.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The&amp;nbsp;simple_on_off_client_set() then calls access_model_reliable_publish(), which is where the unicast address of the server gets retrieved via the dsm_address_get() function.&lt;/p&gt;
&lt;p&gt;The unicast address also gets displayed in the provisioner during the app_health_event_callback() function in main.c&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>