<?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>Sending single Advertisement package without an interval</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/93546/sending-single-advertisement-package-without-an-interval</link><description>nRF Connect SDK 1.9.1 nRF52805 
 Hello, In my application I have two areas where much current is consumed (two current spikes). 1. Getting values from external sensors 
 2. Sending signals in BLE advertisement packages 
 Due to optimization, I would like</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 04 Nov 2022 14:21:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/93546/sending-single-advertisement-package-without-an-interval" /><item><title>RE: Sending single Advertisement package without an interval</title><link>https://devzone.nordicsemi.com/thread/394195?ContentTypeID=1</link><pubDate>Fri, 04 Nov 2022 14:21:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f1b4491-76b5-4405-894f-74659bba4253</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;This is not a common thing to do, so there is no dedicated API for doing this. The simplest is exactly what you described that you don&amp;#39;t want to do: Start advertising with a long advertising interval, and stop advertising before the next advertising event. You do not need to do this with a delay (k_sleep()) in your code, though. A more elegant approach could be to use a delayed work queue item, so that you just post the work item to disable advertising sometime in the future.&lt;/p&gt;
&lt;p&gt;Another approach could be to keep advertising regularly, but sync sensor readings to the advertising events by using &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.1.2/nrfxlib/mpsl/doc/radio_notification.html"&gt;radio notifications from MPSL&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>