<?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>Advertising timeout event handling in S130@SDK12</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/17037/advertising-timeout-event-handling-in-s130-sdk12</link><description>Hi Nordic,
It&amp;#39;s hard to find an example to talk about the event of advertising. I checked the advertising chart and know I will get the event BLE_GAP_EVT_TIMEOUT. Where can I reg a handler function to get this event? The error handler in ble_advertising_init</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 13 Oct 2016 09:29:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/17037/advertising-timeout-event-handling-in-s130-sdk12" /><item><title>RE: Advertising timeout event handling in S130@SDK12</title><link>https://devzone.nordicsemi.com/thread/65351?ContentTypeID=1</link><pubDate>Thu, 13 Oct 2016 09:29:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9667cd72-7f3c-4eb7-847d-a253dc4e579d</guid><dc:creator>Alex</dc:creator><description>&lt;p&gt;In ble_stack_init() register handler by &lt;code&gt;softdevice_ble_evt_handler_set(ble_evt_dispatch)&lt;/code&gt;
Inside ble_evt_dispatch list event handler functions depending on your needs. &lt;code&gt;on_ble_evt(p_ble_evt)&lt;/code&gt; includes BLE_GAP_EVT_TIMEOUT in examples. This is for S110, I beleive S130 has the same structure. Just checked, BLE_GAP_EVT_TIMEOUT is in &lt;code&gt;ble_advertising_on_ble_evt(p_ble_evt)&lt;/code&gt; in S130&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>