<?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>nrf52840 ble advertisement initialize parameters in ble stack</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/46693/nrf52840-ble-advertisement-initialize-parameters-in-ble-stack</link><description>i am working on ble_app_beacon example and i am facing issues in evt_handler. basically i want to use on_adv_evt() function to put my device in sleep mode after timeout hence i copied the function and used in app_beacon example but in the evt handler</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 30 Apr 2019 07:41:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/46693/nrf52840-ble-advertisement-initialize-parameters-in-ble-stack" /><item><title>RE: nrf52840 ble advertisement initialize parameters in ble stack</title><link>https://devzone.nordicsemi.com/thread/184452?ContentTypeID=1</link><pubDate>Tue, 30 Apr 2019 07:41:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:51e7f3c6-d52f-45a4-8c89-0827b240814f</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The beacon example in the SDK is a simple example that only sets up advertising in non-connectable mode. You should define&amp;nbsp;APP_BLE_OBSERVER_PRIO and register a handler for the events with&amp;nbsp;NRF_SDH_BLE_OBSERVER(m_ble_observer, APP_BLE_OBSERVER_PRIO, ble_evt_handler, NULL);&lt;/p&gt;
&lt;p&gt;A simpler approach then starting with the beacon example would be to start with the blinky example (or any other example that use ble events) and then change it so it advertises in non-connectable mode.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Jared&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>