<?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>Sending Message From Client To Server in NRF52832</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/60513/sending-message-from-client-to-server-in-nrf52832</link><description>SDK Version : Mesh 4.0 &amp;amp; SDK_16.0 Software : Segger Embedded Studio 
 Hardware : 2 PCA10040 devices as a client and a server 
 System : Windows 7 Hi, 
 I want to send a string from client to server.Can you please help me for the same</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 28 Apr 2020 08:46:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/60513/sending-message-from-client-to-server-in-nrf52832" /><item><title>RE: Sending Message From Client To Server in NRF52832</title><link>https://devzone.nordicsemi.com/thread/247001?ContentTypeID=1</link><pubDate>Tue, 28 Apr 2020 08:46:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f89c62bb-8fb2-4526-a296-87859d74c430</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi, like Bjørn mentiones in this &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/29836/send-and-receive-a-string-via-access-layer/118550#118550" rel="noopener noreferrer" target="_blank"&gt;post&lt;/a&gt;. You&amp;#39;ll want to include the same code that you implemented on the client side also on the server side. This is to ensure that you can communicate from client to server, but also the other way around. Just read &amp;amp; implement everything after: &amp;quot;&lt;/span&gt;&lt;strong&gt;Inside the&amp;nbsp;message_server&amp;nbsp;main.c file:&amp;quot;&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending Message From Client To Server in NRF52832</title><link>https://devzone.nordicsemi.com/thread/246287?ContentTypeID=1</link><pubDate>Thu, 23 Apr 2020 13:42:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e565753f-7814-4176-8e6a-93ac98fa6b1c</guid><dc:creator>Sachin</dc:creator><description>&lt;p&gt;Hi that thing I understood,but what changes I need to do in main.c of server? because if I am running server code as it is,I am not receiving the string I am sending&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending Message From Client To Server in NRF52832</title><link>https://devzone.nordicsemi.com/thread/246283?ContentTypeID=1</link><pubDate>Thu, 23 Apr 2020 13:34:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62e15768-51ef-4016-addb-5a1329338394</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;You should be calling that function inside the mesh event callback(mesh_evt_cb),&amp;nbsp;&lt;span&gt;whenever&amp;nbsp;you receive the&amp;nbsp;NRF_MESH_EVT_MESSAGE_RECEIVED event. Take a look at the third thread I sent you.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending Message From Client To Server in NRF52832</title><link>https://devzone.nordicsemi.com/thread/246243?ContentTypeID=1</link><pubDate>Thu, 23 Apr 2020 11:50:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0d0b5a5-d67e-4c5f-8827-8909dade677e</guid><dc:creator>Sachin</dc:creator><description>&lt;p&gt;Because I can understand that &amp;quot;mesh_msg_handle&amp;quot; in access.c is receiving the message and printing it.&lt;br /&gt;But I am not understanding when to call this function.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending Message From Client To Server in NRF52832</title><link>https://devzone.nordicsemi.com/thread/246215?ContentTypeID=1</link><pubDate>Thu, 23 Apr 2020 10:47:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5d6ab095-0fbe-4240-9f7b-c93ec4eb7d0b</guid><dc:creator>Sachin</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a class="internal-link view-user-profile" href="https://devzone.nordicsemi.com/members/mttrinh"&gt;Mttrinh&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;Thanks for the reply.&lt;br /&gt;I have gone through the threads suggested by you and I could&amp;nbsp; send the string from client side but still not understanding how to print it in server side ???&lt;br /&gt;I receive the 0 status after&amp;nbsp;&lt;span&gt;&amp;quot;&lt;/span&gt;&lt;code&gt;access_model_publish&amp;quot; in client which means string is sent successfully.&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;Please help&lt;/code&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending Message From Client To Server in NRF52832</title><link>https://devzone.nordicsemi.com/thread/246204?ContentTypeID=1</link><pubDate>Thu, 23 Apr 2020 10:23:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7752d16b-7bf5-46d2-8f20-9bd9d3512ce6</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I suggest you have a look at the following threads:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/46092/send-string-in-a-mesh-with-nrf52dk"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/46092/send-string-in-a-mesh-with-nrf52dk&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/29836/send-and-receive-a-string-via-access-layer"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/29836/send-and-receive-a-string-via-access-layer&lt;/a&gt;&amp;nbsp;(&lt;span&gt;This post &lt;/span&gt;&lt;span&gt;includes a custom&amp;nbsp;&lt;/span&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/simple_5F00_message.zip" rel="noopener noreferrer" target="_blank"&gt;simple_message model example&lt;/a&gt;&lt;span&gt;&amp;nbsp;that will let you send a string over the mesh network.&amp;nbsp;It is made for Mesh SDK v1.0.0 but I suggest you to use the example application as a reference/guidance on how you can make a custom model for Mesh SDK 4.0.0, that let you send a string. )&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/31256/receiving-simple-message-mesh"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/31256/receiving-simple-message-mesh&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;There are many similar threads on Devzone discussing this already, I recommend you try to search around a bit if you have further questions regarding this.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>