<?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>Advertise while connected</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/111870/advertise-while-connected</link><description>I cannot re start advertising while connected. 
 this occurs even when i configure BLE_GAP_ADV_TYPE_NONCONNECTABLE_SCANNABLE_UNDIRECTED. 
 I get NRF_ERROR_CONN_COUNT error code when calling sd_ble_gap_adv_start(). 
 I do not understand why do i get this</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 10 Jun 2024 11:24:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/111870/advertise-while-connected" /><item><title>RE: Advertise while connected</title><link>https://devzone.nordicsemi.com/thread/488106?ContentTypeID=1</link><pubDate>Mon, 10 Jun 2024 11:24:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef7d79db-6b00-4b97-8222-58ade619aade</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Okay, I think you might be able to go around this by adding a separate advertising start function that uses non-connectable parameters from start, as I think your current solution will tell the SoftDevice that you&amp;#39;re about to start a connectable advertisement again, since the check if it will be connectable or not is done within the advertising start function.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertise while connected</title><link>https://devzone.nordicsemi.com/thread/487687?ContentTypeID=1</link><pubDate>Thu, 06 Jun 2024 10:23:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c542f73-05b2-45aa-bb2c-11c12a4bd9b9</guid><dc:creator>Omri Friedman</dc:creator><description>&lt;p&gt;the comment in ble_gap.h for&amp;nbsp;sd_ble_gap_adv_start says&lt;/p&gt;
&lt;p&gt;&amp;quot;NRF_ERROR_CONN_COUNT means that the limit of available connections for this connection configuration&amp;nbsp;tag has been reached; &lt;strong&gt;connectable advertiser cannot be started.&amp;quot;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Increasing the number of available connections also increases the RAM used by the soft device, so i was trying to avoid that... but if that&amp;#39;s the only way to do it then i will do that...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertise while connected</title><link>https://devzone.nordicsemi.com/thread/487684?ContentTypeID=1</link><pubDate>Thu, 06 Jun 2024 10:11:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c48acb4d-0664-4b81-87ec-7144474f4156</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I think you need to set the peripheral link count to 2 because a non-connectable advertisement is still a peripheral link, just a non-connectable one. If it is indeed nonconnectable then you shouldn&amp;#39;t have to worry about it being connected to afterwards.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>