<?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>which example to use for a Peripheral Server GATT ?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/61091/which-example-to-use-for-a-peripheral-server-gatt</link><description>In SDK5, I found 2 examples : a server GATT in Central &amp;amp; a client GATT in Peripheral... 
 But in my case my device (nrf52840 board) needs to be : 
 
 a peripheral : slave IoT device advertising and notifying but not connecting 
 server Gatt : sending</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 08 May 2020 13:01:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/61091/which-example-to-use-for-a-peripheral-server-gatt" /><item><title>RE: which example to use for a Peripheral Server GATT ?</title><link>https://devzone.nordicsemi.com/thread/248962?ContentTypeID=1</link><pubDate>Fri, 08 May 2020 13:01:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a54de1ac-d386-44e1-9ccf-788a3a8183a5</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;I think it would be easier to transform the GAP role than the GATT role :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: which example to use for a Peripheral Server GATT ?</title><link>https://devzone.nordicsemi.com/thread/248956?ContentTypeID=1</link><pubDate>Fri, 08 May 2020 12:54:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:26248636-a489-40d7-aa89-e7b1bf3e10ac</guid><dc:creator>dyvacle</dc:creator><description>&lt;p&gt;Ok you confirm that I thought.&lt;/p&gt;
&lt;p&gt;Is it easier to start from &lt;span&gt;ble_app_gatts_c (peripheral)&lt;/span&gt; and change gatt service to server or to start from&amp;nbsp;ble_app_gatts and change the GAP to peripheral ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: which example to use for a Peripheral Server GATT ?</title><link>https://devzone.nordicsemi.com/thread/248871?ContentTypeID=1</link><pubDate>Fri, 08 May 2020 09:19:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a99d7d31-79d3-4a8a-a210-db546fc106a6</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;[quote userid="90129" url="~/f/nordic-q-a/61091/which-example-to-use-for-a-peripheral-server-gatt"][/quote]&lt;/p&gt;
&lt;p&gt;If I took the&amp;nbsp;server gatt example in central, do I need to transform it for&amp;nbsp;running as server gatt peripheral ?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Yes, as the central and peripheral are the GAP roles of the device, while server and client is the GATT roles of the device. Better explained in &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/71/what-is-a-client-and-server-in-ble"&gt;this thread&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: which example to use for a Peripheral Server GATT ?</title><link>https://devzone.nordicsemi.com/thread/248631?ContentTypeID=1</link><pubDate>Thu, 07 May 2020 07:39:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4cf9b406-bc88-4e0e-a0e4-ccf679faa5c0</guid><dc:creator>dyvacle</dc:creator><description>&lt;p&gt;I think the &amp;quot;&lt;span&gt;GATT Service Client Example Application&amp;quot; in&amp;nbsp;&lt;/span&gt;&lt;span&gt;examples\ble_peripheral\ble_app_gatts_c is a Peripheral / slave because it&amp;#39;s doing&amp;nbsp;advertising_start() in main(). Then, it&amp;#39;s&amp;nbsp;doing&amp;nbsp;a&amp;nbsp;ble_db_discovery_start() to discover peer&amp;#39;s services, which means that is a Client GATT to get the server attributes uuid table from the remote peer or not ?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>