<?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>Notify to all connections</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/28566/notify-to-all-connections</link><description>Hi. 
 I&amp;#39;m testing multiperipheral function,
and have established multiple connections (1 single Peripheral with multiple Centrals).
But it seems that the Peripheral can just notify values to the last connected Central. 
 Could you tell me how to notify</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 19 Dec 2017 08:24:31 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/28566/notify-to-all-connections" /><item><title>RE: Notify to all connections</title><link>https://devzone.nordicsemi.com/thread/113182?ContentTypeID=1</link><pubDate>Tue, 19 Dec 2017 08:24:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:71fe5fae-d74c-4be0-82ff-3669719704ef</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;As endnode pointed out, in later SoftDevices a peripheral can be connected to several central concurrently.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Notify to all connections</title><link>https://devzone.nordicsemi.com/thread/113185?ContentTypeID=1</link><pubDate>Fri, 15 Dec 2017 09:57:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:69446aff-d172-42c8-bda6-1dbd41b1b08d</guid><dc:creator>Kyle Krueger</dc:creator><description>&lt;p&gt;Hi Nack, if shibshab&amp;#39;s answer worked for you, could you please mark it as correct?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Notify to all connections</title><link>https://devzone.nordicsemi.com/thread/113184?ContentTypeID=1</link><pubDate>Fri, 15 Dec 2017 02:29:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ebe5dd50-6b62-4c66-aefc-d0fd21d20207</guid><dc:creator>T.N.</dc:creator><description>&lt;p&gt;Thank you for all.
I&amp;#39;ve tested it and it works fine.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Notify to all connections</title><link>https://devzone.nordicsemi.com/thread/113183?ContentTypeID=1</link><pubDate>Thu, 14 Dec 2017 07:49:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f92d190-1e32-4a93-b5ce-8589ecb5e9c7</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;Hi both,&lt;/p&gt;
&lt;p&gt;First of all GATT Notifications don&amp;#39;t relate to GAP roles at all, these are independent (in other words you can have GAP Peripheral and on top of that GATT Client or GATT Server or even both). Secondly since BT4.2 you can have multiple GAP Peripheral roles/links active on single controller and that&amp;#39;s the case of latest S132/S112/S140 Nordic stacks on nRF52 chips. However each connection is treated separately including all upper layers such as GATT Server.&lt;/p&gt;
&lt;p&gt;Nordic interpret BT4.2 specification in the way that there can be only one GATT Server instance at the time (search for answers on this forum, here is &lt;a href="https://devzone.nordicsemi.com/question/68930/multiple-gatt-server-instances/"&gt;one example&lt;/a&gt;) however state of particular GATT objects such as CCCD or exercising (G)ATT methods such as Notification are per link. So in case you want to Notify multiple GATT Clients you need to issue multiple Notifications by calling &lt;code&gt;sd_ble_gatts_hvx&lt;/code&gt; as per shishab&amp;#39;s suggestion.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Notify to all connections</title><link>https://devzone.nordicsemi.com/thread/113181?ContentTypeID=1</link><pubDate>Thu, 14 Dec 2017 07:22:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:26688fde-d993-4611-8a71-a9c75c09dee4</guid><dc:creator>shibshab</dc:creator><description>&lt;p&gt;1 single Peripheral can only be connected to one Central at a time.&lt;/p&gt;
&lt;p&gt;To issue a notification to any connection in a multi Peripheral setup, you pass the appropriate connection handle to &lt;code&gt;uint32_t sd_ble_gatts_hvx 	( 	uint16_t 	conn_handle, ble_gatts_hvx_params_t const * 	p_hvx_params ) 	&lt;/code&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>