<?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>adc advertising non connectable</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/74378/adc-advertising-non-connectable</link><description>Как рекламировать процент данных батареи каждые 10 секунд без подключения? Еще мне нужно название устройства. Является ли это возможным? Я использую sdk17.0.2.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 28 Apr 2021 12:50:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/74378/adc-advertising-non-connectable" /><item><title>RE: adc advertising non connectable</title><link>https://devzone.nordicsemi.com/thread/307261?ContentTypeID=1</link><pubDate>Wed, 28 Apr 2021 12:50:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a462d739-856e-49e1-8dbc-64a976693d46</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Have you created a local copy of the BLE advertising library in your project?&lt;br /&gt;If so, please check the advertising&amp;nbsp;&lt;em&gt;type&lt;/em&gt; field in the library. Please look for the instances of:&lt;br /&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;p_advertising-&amp;gt;adv_params.properties.type&lt;/pre&gt;&lt;br /&gt;To see how it is set to different types during different function calls from the BLE Advertising library, for example as part of the advertising mode configurations which are called in the&amp;nbsp;&lt;em&gt;ble_advertising_start&lt;/em&gt; function. This is the parameter that determines the type of advertising.&lt;br /&gt;You may then change this in your local version of the library, so that the device advertises as non-connectable, non-scannable.&lt;br /&gt;&lt;br /&gt;Please let me know if it is still unclear, or if you have any other questions!&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: adc advertising non connectable</title><link>https://devzone.nordicsemi.com/thread/307161?ContentTypeID=1</link><pubDate>Wed, 28 Apr 2021 08:17:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bfe638a9-0ca6-4d2d-b85e-4d935efb34a1</guid><dc:creator>good_smile</dc:creator><description>&lt;pre class="tw-data-text tw-text-large XcVN5d tw-ta" id="tw-target-text" dir="ltr"&gt;&lt;span class="Y2IQFc" lang="en"&gt;I still do not understand how to update the ad and make it unconnectable.&lt;/span&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: adc advertising non connectable</title><link>https://devzone.nordicsemi.com/thread/306545?ContentTypeID=1</link><pubDate>Fri, 23 Apr 2021 12:51:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1b12b5d0-9955-4552-a25f-a41e4377f37f</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;br /&gt;&lt;br /&gt;To see how you may get the battery percentage from one of the BLE peripheral examples, such as &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/ble_sdk_app_proximity.html"&gt;the BLE Proximity example&lt;/a&gt;. The example uses a characteristic to transmit the battery percentage, but you need only look at the implementation for how to get the battery percentage. Once you have the battery percentage, you could take a look at &lt;a href="https://devzone.nordicsemi.com/nordic/short-range-guides/b/bluetooth-low-energy/posts/how-to-update-advertising-data-dynamically-using-ble-advertising-library"&gt;this blogpost&lt;/a&gt; to see how you may use the BLE advertising library to dynamically update your advertising data.&lt;br /&gt;Please keep in mind that &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/lib_ble_advertising.html"&gt;the BLE advertising library is typically used to facilitate connectable advertising&lt;/a&gt;, but you could create a local of the library in your project folder, which you modify by changing the advertising type to non-connectable.&lt;br /&gt;Lastly, to see how you could set the advertised device name you could look at the implementation in the BLE beacon example that you reference, in which they set the name during the advertising data init.&lt;br /&gt;&lt;br /&gt;For future reference, please make sure to pose your questions in English exclusively, so we may better help you! :)&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: adc advertising non connectable</title><link>https://devzone.nordicsemi.com/thread/306538?ContentTypeID=1</link><pubDate>Fri, 23 Apr 2021 12:25:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:40a423a4-45f5-47a5-be64-ad91f6f47f0b</guid><dc:creator>good_smile</dc:creator><description>&lt;pre class="tw-data-text tw-text-large XcVN5d tw-ta" id="tw-target-text" dir="ltr"&gt;&lt;span class="Y2IQFc" lang="en"&gt;how to advertise battery data percentage every 10 seconds without connection? I also want the name of the device. Is it possible? I am using sdk17.0.2. Used the beacon example.&lt;/span&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>