<?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>Client to Server Data transmit</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/62874/client-to-server-data-transmit</link><description>Hi every one , i tries to call the generic_onoff_client_set function to send a message from the client to the server but this ain&amp;#39;t working. Can someone please help me? 
 Here is the code: 
 
 
 When i call the function, this is the error i get in the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 25 Jun 2020 06:46:11 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/62874/client-to-server-data-transmit" /><item><title>RE: Client to Server Data transmit</title><link>https://devzone.nordicsemi.com/thread/256807?ContentTypeID=1</link><pubDate>Thu, 25 Jun 2020 06:46:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:51fdeec3-399f-4ce4-8fe6-63670844edeb</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;If you want to send a message from the smartphone to the server, then it&amp;#39;s better if you just publish to the server&amp;#39;s unicast address.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Client to Server Data transmit</title><link>https://devzone.nordicsemi.com/thread/256664?ContentTypeID=1</link><pubDate>Wed, 24 Jun 2020 11:28:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:97f77b65-f04d-4067-ad5e-61c600ef975a</guid><dc:creator>Soter Giga </dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;My answers below.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="15475" url="~/f/nordic-q-a/62874/client-to-server-data-transmit/256649"]Where do you call the code snippet above? And do you get the assert right away when calling &lt;span&gt;generic_onoff_client_set function&lt;/span&gt;?[/quote]
&lt;p&gt;I call the&amp;nbsp;&lt;span&gt;generic_onoff_client_set function in the main() loop. And i get the assert when i call the function.&lt;/span&gt;&lt;/p&gt;
[quote userid="15475" url="~/f/nordic-q-a/62874/client-to-server-data-transmit/256649"]It would also be helpful if you sent me the call stack when the assert occurs.[/quote]
&lt;p&gt;I call the function here. It is in the main loop.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/494x125/__key/communityserver-discussions-components-files/4/pastedimage1592997474646v1.png" /&gt;&lt;/span&gt;&lt;/p&gt;
[quote userid="15475" url="~/f/nordic-q-a/62874/client-to-server-data-transmit/256649"]Can you also give me more details about your use-case? What are you trying to do?[/quote]
&lt;p&gt;To explain, I&amp;#39;m trying to send a byte from the client to the server. &lt;br /&gt;That byte comes from a smartphone application connected to the client through the proxy service. This proxy service communication&amp;nbsp; works fine and I receive the byte in the client from the smartphone.&lt;br /&gt;When I receive the byte I have to retransmit it to the server. This is where I try to call the generic_onoff_client_set function in the main() but this is where I get the error.&lt;/p&gt;
&lt;p&gt;Is it clearer? Feel free to suggest another way to send data to the server if there is one.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Client to Server Data transmit</title><link>https://devzone.nordicsemi.com/thread/256649?ContentTypeID=1</link><pubDate>Wed, 24 Jun 2020 10:27:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b1b07f23-fbfb-411d-8e5d-52197d3122fc</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Where do you call the code snippet above? And do you get the assert right away when calling &lt;span&gt;generic_onoff_client_set function&lt;/span&gt;?&lt;/p&gt;
&lt;p&gt;It would also be helpful if you sent me the call stack when the assert occurs.&lt;/p&gt;
&lt;p&gt;Can you also give me more details about your use-case? What are you trying to do?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Client to Server Data transmit</title><link>https://devzone.nordicsemi.com/thread/256377?ContentTypeID=1</link><pubDate>Tue, 23 Jun 2020 10:08:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:65f073ce-ac89-47b4-88d4-2be037e2ad00</guid><dc:creator>Soter Giga </dc:creator><description>&lt;p&gt;Hi, i used the command, and it gave me this :&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;mesh\core\src/timer_scheduler.c:214 (discriminator 1)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;when i looked in the file on that line i have this:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/498x133/__key/communityserver-discussions-components-files/4/pastedimage1592906821059v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Can you please help?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Client to Server Data transmit</title><link>https://devzone.nordicsemi.com/thread/256363?ContentTypeID=1</link><pubDate>Tue, 23 Jun 2020 09:41:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce9c1ffc-e461-4e25-88a4-b1ecaa1465be</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Do you get any errors when you remove this modification?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You should have the addr2line tool after installing SES.&amp;nbsp;You should be able to find it here:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;[Your location]\SEGGER\SEGGER Embedded Studio for ARM 4.52c\gcc\arm-none-eabi\bin&lt;/p&gt;
&lt;p&gt;Add it to your PATH. Then you use the command above in your command prompt.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Client to Server Data transmit</title><link>https://devzone.nordicsemi.com/thread/256335?ContentTypeID=1</link><pubDate>Tue, 23 Jun 2020 08:24:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8616a62b-9b41-4cad-8aa2-6f58cd69b1bb</guid><dc:creator>Soter Giga </dc:creator><description>&lt;p&gt;Hi i&amp;#39;m using the&amp;nbsp;nrf5_SDK_for_Mesh_v4.1.0 and i modified the Light Switch example!&lt;/p&gt;
&lt;p&gt;That is the only thing i modified. I tried to call the function and i&amp;#39;m getting that error. I even tried to call the button_press handler to simulate a button press but i have the same error.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Can you please tell me how to use that &lt;span&gt;addr2line&amp;nbsp;&amp;nbsp;&lt;/span&gt;command? I&amp;#39;m new on this and i don&amp;#39;t know very well how it works.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks for your help!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Client to Server Data transmit</title><link>https://devzone.nordicsemi.com/thread/256326?ContentTypeID=1</link><pubDate>Tue, 23 Jun 2020 08:15:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:91228257-8048-4ceb-bec3-28cc7218c97e</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Which Mesh SDK are you using? Are you using the Light switch client example? Is this the only thing you have modified?&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You can track the error to find which function causing the assert by using addr2line tool, the syntax is:&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;pre class="ui-code" data-mode="text"&gt;arm-none-eabi-addr2line -e filename.elf 0x2C4F2&lt;/pre&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>