<?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>Can&amp;#39;t send dynamically allocated array over bluetooth mesh</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/36444/can-t-send-dynamically-allocated-array-over-bluetooth-mesh</link><description>Hello everyone! I&amp;#39;m new to bluetooth mesh or even to C programming and i don&amp;#39;t understand the following: I want to send messages over Bluetooth Mesh from an nRF52840 to another, to do this i used the light_switch example and modified the &amp;quot;send_reliable_message</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 17 Jul 2018 12:42:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/36444/can-t-send-dynamically-allocated-array-over-bluetooth-mesh" /><item><title>RE: Can't send dynamically allocated array over bluetooth mesh</title><link>https://devzone.nordicsemi.com/thread/140396?ContentTypeID=1</link><pubDate>Tue, 17 Jul 2018 12:42:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5115a144-d4a0-4596-82cd-056309697390</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi ,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The access layer wouldn&amp;#39;t copy the buffer into its own buffer, so the data you provide need to keep its value even after you get out of the function. You would need to use a static array here.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>