<?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>Why did the softdevice handler&amp;#39;s API change?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/33588/why-did-the-softdevice-handler-s-api-change</link><description>Why did the softdevice handler&amp;#39;s API change? 
 sorry for a general question. I used SDK 13. and Now, I am porting my software to SDK 15. So, I have simple question. Why did the softdevice handler&amp;#39;s API change? I want to know the meaning changed it. 
</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 07 May 2018 07:18:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/33588/why-did-the-softdevice-handler-s-api-change" /><item><title>RE: Why did the softdevice handler's API change?</title><link>https://devzone.nordicsemi.com/thread/131129?ContentTypeID=1</link><pubDate>Mon, 07 May 2018 07:18:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d5205324-3479-4ce8-a8e4-9f93a7c27aa0</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;That is correct. If you want to change the order, wrt. which handler is called first, then you should change the define that you mention.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why did the softdevice handler's API change?</title><link>https://devzone.nordicsemi.com/thread/131114?ContentTypeID=1</link><pubDate>Mon, 07 May 2018 03:36:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:45dc92af-7c69-4a25-b502-dc66b27396c4</guid><dc:creator>masataka hasegawa</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thank you for your reply.&lt;br /&gt;I understood it.&lt;/p&gt;
&lt;p&gt;At old interface,&lt;br /&gt;if I want to change the handler priority, I changed the order of the hanler calling.&lt;/p&gt;
&lt;p&gt;At new interface,&lt;br /&gt;if I want to change the handler priority, shuld I set BLE_XXXX_OBSERVER_PRIO?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Hasegawa&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why did the softdevice handler's API change?</title><link>https://devzone.nordicsemi.com/thread/129162?ContentTypeID=1</link><pubDate>Fri, 20 Apr 2018 13:39:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0a10457f-867f-4fd6-8b5b-32f4e07d567f</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The previous implementation of the softdevice_handler was centered around the main.c application, and the on_ble_evt handler.&lt;/p&gt;
&lt;p&gt;All the hooks into ble-services, bond handling, flash handling, and other SoftDevice related events needed to go through the main.c implementations.&lt;/p&gt;
&lt;p&gt;One of the issues that we at technical support saw very often is that a developer had added a new library, but forgot to add the library-handler function call to the main.c::on_ble_evt() (or sys_evt_handler), thus the application did not work properly.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;With the nrf_sdh_* libraries, you can now add a new BLE service to your example, and the handler for the BLE&amp;nbsp;service recently added will be loaded into a .section for the linker to dynamically place.&lt;/p&gt;
&lt;p&gt;nrf_sdh_* will look at this .section, and loop over it for all the registered &amp;quot;subscribers&amp;quot;.&lt;/p&gt;
&lt;p&gt;This removes manual labor for the developer, and optimizes the application as each function call is not routed from the main file anymore.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This thread might also be of interest:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/30470/dynamic-allocate-ble-observers/"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/30470/dynamic-allocate-ble-observers/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>