<?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>Direct Advertisement (without bonding first and adding the peer address manually)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/101612/direct-advertisement-without-bonding-first-and-adding-the-peer-address-manually</link><description>Hello, 
 
 I am trying to do a directed advertisement, the code works, and the advertisement starts, but it does not connect to the central (for central I am using the https://github.com/nrfconnect/sdk-zephyr/tree/v3.3.99-ncs1/samples/bluetooth/central</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 14 Jul 2023 10:19:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/101612/direct-advertisement-without-bonding-first-and-adding-the-peer-address-manually" /><item><title>RE: Direct Advertisement (without bonding first and adding the peer address manually)</title><link>https://devzone.nordicsemi.com/thread/436437?ContentTypeID=1</link><pubDate>Fri, 14 Jul 2023 10:19:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d4c5ba9f-87bf-453a-9947-89b64206cfdc</guid><dc:creator>Einarh</dc:creator><description>[quote user="rao933"]I directly need to do direct advertisement at power up[/quote]
&lt;p&gt;The sample already does this as long as you&amp;#39;ve bonded once first.&lt;/p&gt;
&lt;p&gt;You&amp;#39;ll have to bond before you can do directed advertising.&lt;/p&gt;
&lt;p&gt;-EInar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Direct Advertisement (without bonding first and adding the peer address manually)</title><link>https://devzone.nordicsemi.com/thread/436347?ContentTypeID=1</link><pubDate>Thu, 13 Jul 2023 23:21:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:46217d59-31e7-468f-ae51-7073a8b4d461</guid><dc:creator>tiva4c</dc:creator><description>&lt;p&gt;Yes, the code works if I do the bonding first, and then the direct advertisement, but my requirement is I directly need to do direct advertisement at power up, I already know the central address that I can hard code. I would appreciate it if you help me with that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Direct Advertisement (without bonding first and adding the peer address manually)</title><link>https://devzone.nordicsemi.com/thread/435759?ContentTypeID=1</link><pubDate>Tue, 11 Jul 2023 13:45:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:321276d6-a889-4e58-817b-4bd49f119245</guid><dc:creator>Einarh</dc:creator><description>[quote user="rao933"]The original code only do direct advertisement when the central is bonded[/quote]
&lt;p&gt;Ok but have you tested that the original code works as expected with your setup?&lt;/p&gt;
&lt;p&gt;Knowing that it works in principle and that the issue is only with your implementation would make your issue much easier to approach.&lt;/p&gt;
&lt;p&gt;-Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Direct Advertisement (without bonding first and adding the peer address manually)</title><link>https://devzone.nordicsemi.com/thread/435557?ContentTypeID=1</link><pubDate>Mon, 10 Jul 2023 16:34:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f3286ab1-7173-4797-9d46-318138008414</guid><dc:creator>tiva4c</dc:creator><description>&lt;p&gt;The original code only do direct advertisement when the central is bonded, else it does normal advertisement. I want to do direct advertisement by manually adding the central address which has not been bonded before.&lt;br /&gt;&lt;br /&gt;I only want my peripheral to connect to the central on power up, so I don&amp;#39;t have the time to bond first, but i have the central address, that i can hard code, all the other information, i provided in my above question.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Direct Advertisement (without bonding first and adding the peer address manually)</title><link>https://devzone.nordicsemi.com/thread/435517?ContentTypeID=1</link><pubDate>Mon, 10 Jul 2023 13:26:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d0ff2fef-a65d-44a6-a38a-d179fcc56b16</guid><dc:creator>Einarh</dc:creator><description>[quote user=""]Here is my code (I made changes in this code[/quote]
&lt;p&gt;What exactly have you changed in this code and for what purpose?&lt;/p&gt;
&lt;p&gt;Does it work if you use the unmodified sample?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>