<?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>adding beacon to BLE LED/Button service</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/96400/adding-beacon-to-ble-led-button-service</link><description>good day, 
 is it possible to add beacon to bled led/button example. If the device is not connected and the button is pressed, we would like it to start broadcasting as beacon. 
 but if the device is paired/connected, it would be like the normal ble led</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 29 Nov 2023 09:02:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/96400/adding-beacon-to-ble-led-button-service" /><item><title>RE: adding beacon to BLE LED/Button service</title><link>https://devzone.nordicsemi.com/thread/458014?ContentTypeID=1</link><pubDate>Wed, 29 Nov 2023 09:02:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bd10d7d1-ec0f-49c3-b7f0-f5416c18cb1f</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi xtian,&lt;/p&gt;
&lt;p&gt;Please refer to this blog post then:&amp;nbsp;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/guides/short-range-guides/b/bluetooth-low-energy/posts/how-to-update-advertising-data-dynamically-using-ble-advertising-library"&gt;How to update advertising data dynamically using BLE Advertising library&lt;/a&gt;&amp;nbsp;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: adding beacon to BLE LED/Button service</title><link>https://devzone.nordicsemi.com/thread/457984?ContentTypeID=1</link><pubDate>Wed, 29 Nov 2023 02:18:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e324ce5-e696-4ae8-ac4f-c2f0fdeeadfb</guid><dc:creator>xtian</dc:creator><description>&lt;p&gt;hi,&lt;/p&gt;
&lt;p&gt;the first one is correct. initially, it will be like the BLE_UART example where it is connectable but we also want it to be like the BLE_APP_BEACON (non-connectable) example when a button is pressed when no devices are connected and it&amp;#39;s advertising. and when it is acting as beacon, we want it to be able switch back to BLE_UART (connectable) example if the button is pressed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: adding beacon to BLE LED/Button service</title><link>https://devzone.nordicsemi.com/thread/457931?ContentTypeID=1</link><pubDate>Tue, 28 Nov 2023 16:12:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:94b889c9-7997-4cec-8c25-1fc40b206888</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi xtian,&lt;/p&gt;
&lt;p&gt;I may have misunderstood you. I thought by &amp;quot;beacon&amp;quot; you mean a device&amp;nbsp;making non-connectable advertising to broadcast certain data.&lt;/p&gt;
&lt;p&gt;If I understand you correctly now, your use case is: When a device is disconnected, it makes connectable advertising so that a new Central device can reconnect to it.&lt;/p&gt;
&lt;p&gt;Is that right?&lt;/p&gt;
&lt;p&gt;If so, then almost all of our Peripheral examples already work like that. I&amp;nbsp;am sure &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/ble_sdk_app_nus_eval.html"&gt;the UART/Serial Port Emulation over BLE&lt;/a&gt;&amp;nbsp;example does it.&lt;/p&gt;
&lt;p&gt;The behavior is realized by the&amp;nbsp;&lt;a title="Advertising Module" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/lib_ble_advertising.html?cp=9_1_3_2_1"&gt;Advertising Module&lt;/a&gt;&amp;nbsp;library. Please go over its documentation for more information.&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: adding beacon to BLE LED/Button service</title><link>https://devzone.nordicsemi.com/thread/457741?ContentTypeID=1</link><pubDate>Tue, 28 Nov 2023 07:12:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de2f75c2-3fa1-451c-b842-265e5d68a732</guid><dc:creator>xtian</dc:creator><description>&lt;p&gt;the plan is to switch to beacon mode when no devices are connected if the button is pressed. so i just need to call the advertising_start function for beacon?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: adding beacon to BLE LED/Button service</title><link>https://devzone.nordicsemi.com/thread/457629?ContentTypeID=1</link><pubDate>Mon, 27 Nov 2023 15:33:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dbdd8a8c-a388-41fd-8eba-861711843248</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi xtian,&lt;/p&gt;
&lt;p&gt;You shouldn&amp;#39;t need to deinitialize anything. However, if you need the GATT feature to be completely inaccessible after the button is pressed, then you also need to remember to disconnect all existing connection to the device.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: adding beacon to BLE LED/Button service</title><link>https://devzone.nordicsemi.com/thread/457254?ContentTypeID=1</link><pubDate>Fri, 24 Nov 2023 04:29:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b0e3e4d-087e-40e1-8bff-d2d1f6857fe0</guid><dc:creator>xtian</dc:creator><description>&lt;p&gt;sorry for late reply.&lt;/p&gt;
&lt;p&gt;instead of button example, how about changing from uart example to beacon example. so initially it will be using gatts service and change to beacon mode when button is pressed.&lt;/p&gt;
&lt;p&gt;do i need to uninitialize something?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: adding beacon to BLE LED/Button service</title><link>https://devzone.nordicsemi.com/thread/413474?ContentTypeID=1</link><pubDate>Mon, 06 Mar 2023 10:22:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c7ccaf53-7138-41af-951c-b837cb2d92db</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;void bsp_event_handler(bsp_event_t event)
{
    uint32_t err_code;
    switch (event)
    {
        case BSP_EVENT_KEY_0:
            if(&amp;lt;advertsing module is not already in advertising mode&amp;gt;)
            {
                ble_advertising_start(your parameter here);
            }
            break;
    }
}
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: adding beacon to BLE LED/Button service</title><link>https://devzone.nordicsemi.com/thread/413361?ContentTypeID=1</link><pubDate>Sat, 04 Mar 2023 10:18:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a39a8230-d3d5-45d0-ab8b-8573d0d6ea3b</guid><dc:creator>M.Praveen</dc:creator><description>&lt;p&gt;any example code modified the button_event_handler&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: adding beacon to BLE LED/Button service</title><link>https://devzone.nordicsemi.com/thread/408635?ContentTypeID=1</link><pubDate>Tue, 07 Feb 2023 15:13:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2927661c-8d24-4055-a2e1-f22de24dad81</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi xtian,&lt;/p&gt;
&lt;p&gt;Yes, this is possible. You can just modify the options in the button_event_handler() or its equivalent in the example you are working on.&lt;/p&gt;
&lt;p&gt;However, for most of our examples, I believe the application&amp;#39;s behavior is to start advertising when the device is disconnected.&amp;nbsp;What kind of advertisement&amp;nbsp;do you want to broadcast?&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>