<?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>A few questions about GATT</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/18498/a-few-questions-about-gatt</link><description>As I came to understand, all the services &amp;amp; characteristics are registered in a &amp;quot;GATT table&amp;quot; of some sort, so my question: 
 
 
 What are the functions used to create and subsequently maintain this table? I can&amp;#39;t find the relevant struct, which is</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 20 Dec 2016 10:32:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/18498/a-few-questions-about-gatt" /><item><title>RE: A few questions about GATT</title><link>https://devzone.nordicsemi.com/thread/71386?ContentTypeID=1</link><pubDate>Tue, 20 Dec 2016 10:32:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d37f36ce-b983-4207-b973-cf7cfe53a9b8</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;1)&lt;/strong&gt;	The GATT table is a part of the SoftDevice, and the application can use the API functions &lt;code&gt;sd_ble_gatts_*&lt;/code&gt; to interact with the GATT. You can find the GATT SoftDevice functions &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.s132.api.v3.0.0%2Fgroup___b_l_e___g_a_t_t_s___f_u_n_c_t_i_o_n_s.html&amp;amp;resultof=%22sd_ble_gatts_characteristic_add%22%20"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;2)&lt;/strong&gt;
Yes, there are always 2 mandatory services:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;a href="https://www.bluetooth.com/specifications/gatt/viewer?attributeXmlFile=org.bluetooth.service.generic_access.xml&amp;amp;u=org.bluetooth.service.generic_access.xml"&gt;The Generic Access service&lt;/a&gt; with UUID 0x1800, which contains general information about the device.&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.bluetooth.com/specifications/gatt/viewer?attributeXmlFile=org.bluetooth.service.generic_attribute.xml&amp;amp;u=org.bluetooth.service.generic_attribute.xml"&gt;The Generic Attribute service&lt;/a&gt; with UUID 0x1801, used to notify the central of changes in the services and characteristics on the peripheral.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;strong&gt;3)&lt;/strong&gt;  If you want to read/write to a characteristics you need to add read/write properties and permissions to the characteristics. You can find more information in e.g. the &lt;a href="https://devzone.nordicsemi.com/tutorials/17/"&gt;BLE Characteristics tutorial&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>