<?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>S110 API variables questions</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/2324/s110-api-variables-questions</link><description>In the nRF51 SDK examples, some pass the parameter adv_params off the stack as a locally declared vaiable in the context of the function and some pass static global variables. 
 For this API, and others, which is correct (or are both valid, i.e., the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 24 Apr 2014 14:33:06 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/2324/s110-api-variables-questions" /><item><title>RE: S110 API variables questions</title><link>https://devzone.nordicsemi.com/thread/9596?ContentTypeID=1</link><pubDate>Thu, 24 Apr 2014 14:33:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b4fb2867-3501-4500-9785-c5de6c2035a9</guid><dc:creator>Ulrich Myhre</dc:creator><description>&lt;p&gt;The SoftDevice will copy all the data it needs for API calls. Some calls will have in/out or out-values you might want to keep around or double-check against (lengths written, attribute handles assigned, etc.), but this is up to you.&lt;/p&gt;
&lt;p&gt;(In the few cases where pointers have to live for a while, the SoftDevice would have to send you a heads-up when memory can be freed. This is currently done when handling long writes, using &lt;a href="http://devzone.nordicsemi.com/documentation/nrf51/5.2.0/html/a00878.html"&gt;MEM_REQUEST&lt;/a&gt;.)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>