<?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>pc-ble-driver-js multi-peripheral</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/54445/pc-ble-driver-js-multi-peripheral</link><description>Is it possible to implement a multi-peripheral using node pc-ble-driver-js? And could you possibly provide an example?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 29 Nov 2019 14:51:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/54445/pc-ble-driver-js-multi-peripheral" /><item><title>RE: pc-ble-driver-js multi-peripheral</title><link>https://devzone.nordicsemi.com/thread/222850?ContentTypeID=1</link><pubDate>Fri, 29 Nov 2019 14:51:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0c2c53a-5a95-43bb-8fb7-86bfcb065bf3</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Yes, that should be possible, although we do not seem to have any example for it.&lt;/p&gt;
&lt;p&gt;The heart_rate_collector example connects only to one device at a time. For a multiperipheral you need to store information about multiple connections (instead of just one as in the heart_rate_collector example) and use the connection handle as lookup. You must also start scanning again after successful connection to a device, if the number of connections are less than the maximum.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>