<?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>General questions on the code loaded on nRF devices</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/13344/general-questions-on-the-code-loaded-on-nrf-devices</link><description>Hi all, i am experimenting on the example &amp;quot;ble_app_beacon&amp;quot; on my smart beacon kit, but i have two questions about it (though they are pretty general): 
 
 
 When a connection with a device happens, in the code we have the execution of &amp;quot;ble evt dispatch</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 21 Apr 2016 09:20:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/13344/general-questions-on-the-code-loaded-on-nrf-devices" /><item><title>RE: General questions on the code loaded on nRF devices</title><link>https://devzone.nordicsemi.com/thread/50871?ContentTypeID=1</link><pubDate>Thu, 21 Apr 2016 09:20:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:000bb13b-ad36-47d2-85a4-fdf5e6b29013</guid><dc:creator>Revo</dc:creator><description>&lt;p&gt;Yeah i already followed all the tutorials, thanks for the explanation!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: General questions on the code loaded on nRF devices</title><link>https://devzone.nordicsemi.com/thread/50870?ContentTypeID=1</link><pubDate>Thu, 21 Apr 2016 07:59:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:58009e7d-f7ce-4d93-b8a5-24aaecaea9ce</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The program is event driven, where events can originate from timers, from the radio or from other hardware peripherals. The code as such does not necessarily loop doing anything other than just not exiting from main. Look at the main loop in the examples to see what is happening when there are no events being processed.&lt;/p&gt;
&lt;p&gt;You can remove services and characteristics, but be aware of the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Some services may also be advertised. If they are they should be removed from the advertising packet if they are removed.&lt;/li&gt;
&lt;li&gt;Some centrals may cache what services and characteristics are on a peripheral. Without the service changed characteristic the central may stil show the &amp;quot;old&amp;quot; services and characteristics even though they are changed.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;In general I would recommend having a look at some of our &lt;a href="https://devzone.nordicsemi.com/tutorials/"&gt;tutorials&lt;/a&gt;, in particular those under &lt;strong&gt;Bluetooth Low Energy&lt;/strong&gt; such as the BLE advertising, characteristics and services tutorials.&lt;/p&gt;
&lt;p&gt;Regards, Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>