<?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>multi nus current number of devices connected</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/104455/multi-nus-current-number-of-devices-connected</link><description>Hi All 
 I am using NCS SKD 2.0.2 , VSCODE and multinus as an example . I want to know the current number of devices (peripherals connected) 
 I used &amp;quot; const size_t num_nus_conns = bt_conn_ctx_count ( &amp;amp; conns_ctx_lib );&amp;quot; 
 
 
 but it always gives 20 </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 09 Oct 2023 11:15:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/104455/multi-nus-current-number-of-devices-connected" /><item><title>RE: multi nus current number of devices connected</title><link>https://devzone.nordicsemi.com/thread/449339?ContentTypeID=1</link><pubDate>Mon, 09 Oct 2023 11:15:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7745625f-2725-45a9-b15a-1e24ef1f6ef4</guid><dc:creator>Kenneth</dc:creator><description>[quote user=""]I tried another approach to increment the global variable in connected() and decrement in disconnected (), is that approach ok? Any reliability issue in that?[/quote]
&lt;p&gt;That sounds like a good idea, I can&amp;#39;t think of other way of doing this no.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>