<?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>Misunderstanding of writing from Client to Server.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/40854/misunderstanding-of-writing-from-client-to-server</link><description>Hello everyone, 
 I write datas from my Client to my Server, but I don&amp;#39;t really understand where I can retrieve my data on my server. 
 
 Is this function allowing to get data from the Server to Client or It allow to retrieve data on the Server from the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 26 Nov 2018 11:59:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/40854/misunderstanding-of-writing-from-client-to-server" /><item><title>RE: Misunderstanding of writing from Client to Server.</title><link>https://devzone.nordicsemi.com/thread/159004?ContentTypeID=1</link><pubDate>Mon, 26 Nov 2018 11:59:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3dde7b2b-8b2f-4fbc-a301-561c21c60e7d</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m glad you have found a solution, good luck with your project.&lt;/p&gt;
&lt;p&gt;Best regards.&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Misunderstanding of writing from Client to Server.</title><link>https://devzone.nordicsemi.com/thread/158995?ContentTypeID=1</link><pubDate>Mon, 26 Nov 2018 10:32:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:afce8118-e464-4b24-8c92-64f3e8249ae1</guid><dc:creator>Sylvain</dc:creator><description>&lt;p&gt;Dear Andreas,&lt;/p&gt;
&lt;p&gt;Thank you for your answer. It comfort my first idea.&lt;/p&gt;
&lt;p&gt;The second point is about a problem between the shared variables into my different libraries. But I have bypassed the problem by another implementation.&lt;/p&gt;
&lt;p&gt;Sincerely,&lt;br /&gt;Sylvain.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Misunderstanding of writing from Client to Server.</title><link>https://devzone.nordicsemi.com/thread/158980?ContentTypeID=1</link><pubDate>Mon, 26 Nov 2018 09:57:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b16305a5-6f14-412b-a340-da588216e1a6</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi Sylvain.&lt;/p&gt;
&lt;p&gt;The API function sd_ble_gatts_value_get() is used to get the value of a given attribute from the server, ref: &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.s132.api.v6.1.0%2Fgroup___b_l_e___g_a_t_t_s___f_u_n_c_t_i_o_n_s.html&amp;amp;cp=2_3_1_1_0_2_4_2_12&amp;amp;anchor=gad95321e157e632e7ac3a77f3388cbdf7"&gt;infocenter&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;It is used locally, so you don&amp;#39;t get data from the server to the client.&lt;/p&gt;
&lt;p&gt;If you want to read/write from a client to a server you have to use&amp;nbsp; &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.s132.api.v6.1.0%2Fgroup___b_l_e___g_a_t_t_c___f_u_n_c_t_i_o_n_s.html&amp;amp;cp=2_3_1_1_0_2_2_2_9&amp;amp;anchor=ga813daa5810a1d2ed31d2d6fe49d3ef11"&gt;sd_ble_gattc_read() &lt;/a&gt;or&amp;nbsp; &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.s132.api.v6.1.0%2Fgroup___b_l_e___g_a_t_t_c___f_u_n_c_t_i_o_n_s.html&amp;amp;cp=2_3_1_1_0_2_2_2_11&amp;amp;anchor=ga90298b8dcd8bbe7bbe69d362d1133378"&gt;sd_ble_gattc_write()&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]The strange problem is that when I read the value in debug from the main I got the right value, but when I look the value from the library it&amp;#39;s always 0. I really don&amp;#39;t understand since this is the same variable.[/quote]
&lt;p&gt;&amp;nbsp;I&amp;#39;m a bit unsure what you mean, could you explain more?&lt;/p&gt;
&lt;p&gt;Best regards.&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>