<?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>bluetooth advertise event</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/87517/bluetooth-advertise-event</link><description>Hi, 
 I am doing the java programming with BLE advertise, and I want to make BLE advertise events stop when the advertising events number enough. Are there any methods to know the BLE advertising events number when advertising happens? And how to stop</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 09 May 2022 08:47:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/87517/bluetooth-advertise-event" /><item><title>RE: bluetooth advertise event</title><link>https://devzone.nordicsemi.com/thread/366858?ContentTypeID=1</link><pubDate>Mon, 09 May 2022 08:47:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ad8b4c00-0f76-4cfa-afef-f45d0edb66cf</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Disgy&lt;/p&gt;
&lt;p&gt;According to one of our Android developers this parameter should work fine, even if the name implies that it only works for extended advertising. He did some tests to verify that it works also with legacy advertising.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Have you done any tests on your end to see if the parameter works or not?&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: bluetooth advertise event</title><link>https://devzone.nordicsemi.com/thread/366728?ContentTypeID=1</link><pubDate>Fri, 06 May 2022 12:53:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e93fd1b9-08c2-4c57-a49d-64102d4efd2d</guid><dc:creator>disgy</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;Torbj&amp;oslash;rn&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Thank you for this information. I searched this parameter before, but I am using Legacy Advertise in the application. I don&amp;#39;t find the similar information for Legacy Advertise.&amp;nbsp;Are&amp;nbsp;there have&amp;nbsp; parameters or methods to set Legacy Advertise number of events?&lt;/p&gt;
&lt;p&gt;Sorry for not describe the question clearly at first.&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Disgy&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: bluetooth advertise event</title><link>https://devzone.nordicsemi.com/thread/366413?ContentTypeID=1</link><pubDate>Thu, 05 May 2022 10:45:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f6610958-6ad4-4f8b-acea-ac81e72b493d</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Disgy&lt;/p&gt;
&lt;p&gt;As long as you target Android 8 or newer there should be a parameter you can use for this, in the startAdvertisingSet(..) function:&lt;br /&gt;&lt;a href="https://developer.android.com/reference/android/bluetooth/le/BluetoothLeAdvertiser#startAdvertisingSet(android.bluetooth.le.AdvertisingSetParameters,%20android.bluetooth.le.AdvertiseData,%20android.bluetooth.le.AdvertiseData,%20android.bluetooth.le.PeriodicAdvertisingParameters,%20android.bluetooth.le.AdvertiseData,%20int,%20int,%20android.bluetooth.le.AdvertisingSetCallback)"&gt;https://developer.android.com/reference/android/bluetooth/le/BluetoothLeAdvertiser#startAdvertisingSet(android.bluetooth.le.AdvertisingSetParameters,%20android.bluetooth.le.AdvertiseData,%20android.bluetooth.le.AdvertiseData,%20android.bluetooth.le.PeriodicAdvertisingParameters,%20android.bluetooth.le.AdvertiseData,%20int,%20int,%20android.bluetooth.le.AdvertisingSetCallback)&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If you&amp;nbsp;set the maxExtendedAdvertisingEvents parameter to something larger than 0, then the advertising should stop after this number of events.&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: bluetooth advertise event</title><link>https://devzone.nordicsemi.com/thread/365983?ContentTypeID=1</link><pubDate>Tue, 03 May 2022 12:32:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d30f486-f987-4740-9c14-e822af4ff9fd</guid><dc:creator>disgy</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I use Android Studio to do programming, and want to write the app for advertise. I see the nRF connect app can set the advertising event numbers, but I can not stop and count my advertise events number in my app. I don&amp;#39;t know what&amp;#39;s wrong in my code.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Disgy&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: bluetooth advertise event</title><link>https://devzone.nordicsemi.com/thread/365933?ContentTypeID=1</link><pubDate>Tue, 03 May 2022 10:20:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:39bf865b-0ccf-4124-abdf-d3ed644e8e4e</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What kind of device are you programming?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Is it some kind of Nordic development kit, or something else?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In the Bluetooth world Java development is usually only used on the Android side.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>