<?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>Multilink Peripheral BLE Services</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/25390/multilink-peripheral-ble-services</link><description>Hello, 
 for multilink client services Nordic introduced the *_EVT_DISCOVERY_COMPLETE events and the *_c_handles_assign functions. Like the BLE_BAS_C_EVT_DISCOVERY_COMPLETE event and the ble_bas_c_handles_assign function for the Batterie Client Service</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 27 Sep 2017 08:02:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/25390/multilink-peripheral-ble-services" /><item><title>RE: Multilink Peripheral BLE Services</title><link>https://devzone.nordicsemi.com/thread/100058?ContentTypeID=1</link><pubDate>Wed, 27 Sep 2017 08:02:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2a952f3b-cb3e-4558-a76c-3726252c4552</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I&amp;#39;m not ware of any such plans, sorry.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multilink Peripheral BLE Services</title><link>https://devzone.nordicsemi.com/thread/100059?ContentTypeID=1</link><pubDate>Tue, 26 Sep 2017 21:30:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6250730b-8b9b-4e57-a88b-83ade329386c</guid><dc:creator>Tron</dc:creator><description>&lt;p&gt;Thank you for the answer. Do you know if Nordic plans to modify (all) the provided services to support multiple instances in the future?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multilink Peripheral BLE Services</title><link>https://devzone.nordicsemi.com/thread/100057?ContentTypeID=1</link><pubDate>Mon, 25 Sep 2017 10:28:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a617bc58-931b-4793-8286-3a468cf49c56</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;The battery service module doesn&amp;#39;t really support multiple instances, so the library has to be modified. The first step would be to add something like this:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;/** @brief Macro for defining multiple ble_bas instances.
 *
 * @param   _name   Name of the array of instances.
 * @param   _cnt    Number of instances to define.
 */
#define BLE_BAS_ARRAY_DEF(_name, _cnt)                                                            \
static ble_bas_t _name[_cnt];                                                                     \
NRF_SDH_BLE_OBSERVERS(_name ## _obs,                                                                \
                      BLE_BAS_BLE_OBSERVER_PRIO,                                                  \
                      ble_bas_on_ble_evt, &amp;amp;_name, _cnt)
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;And declare the number of instances you want. I haven&amp;#39;t look further into the library to see what other changes are necessary. Let me know if you get into trouble.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>