<?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>S132 Attribute Table Size</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/16741/s132-attribute-table-size</link><description>Hi, 
 referring to the SoftDevice Specification, S132 Softdevice vx.0, paragraph 15.2 (Attribute table size) I wonder how one does work out the size of the attribute table. 
 The reference given at the bottom of the paragraph refers to the API and the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 29 Sep 2016 10:59:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/16741/s132-attribute-table-size" /><item><title>RE: S132 Attribute Table Size</title><link>https://devzone.nordicsemi.com/thread/64006?ContentTypeID=1</link><pubDate>Thu, 29 Sep 2016 10:59:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d11eb669-ab09-49b9-846b-5ae04c25b884</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Happy to help ;) I would appreciate if you could mark the answer as correct(click the check mark in the circle tot he left of the answer).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S132 Attribute Table Size</title><link>https://devzone.nordicsemi.com/thread/64005?ContentTypeID=1</link><pubDate>Thu, 29 Sep 2016 10:58:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b87b7a35-cd0b-4208-9ff7-0baec58ef9c4</guid><dc:creator>oneguy</dc:creator><description>&lt;p&gt;Thanks :-)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S132 Attribute Table Size</title><link>https://devzone.nordicsemi.com/thread/64008?ContentTypeID=1</link><pubDate>Thu, 29 Sep 2016 10:40:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:60f7c9d7-e5e8-444b-b6c2-50bdba7b6942</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Yes, you are correct. The attribute table will not increase in size after you have added all your services and characteristics.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S132 Attribute Table Size</title><link>https://devzone.nordicsemi.com/thread/64007?ContentTypeID=1</link><pubDate>Thu, 29 Sep 2016 10:36:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:015a5c4b-0de2-48bb-b2d8-d81d9f3f1742</guid><dc:creator>oneguy</dc:creator><description>&lt;p&gt;Hi Bjørn,&lt;/p&gt;
&lt;p&gt;Thank you - that&amp;#39;s how I have done it.&lt;/p&gt;
&lt;p&gt;Please confirm:
Once I have finished calling sd_ble_gatts_service_add and sd_ble_gatts_characteristic_add the attribute table has grown to its final size and will never expand again?&lt;/p&gt;
&lt;p&gt;Regards
Matthias&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S132 Attribute Table Size</title><link>https://devzone.nordicsemi.com/thread/64004?ContentTypeID=1</link><pubDate>Thu, 29 Sep 2016 09:10:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8ff2be13-5987-485b-aace-583fde21719b</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Hi Matthias,&lt;/p&gt;
&lt;p&gt;I am afraid that there is no way to calculate the attribute size for a given number of services and characteristics( the internal build-up of the attribute table is &amp;quot;hidden&amp;quot; in the SoftDevice, which is not public information).&lt;/p&gt;
&lt;p&gt;You will get the &lt;code&gt;NRF_ERROR_NO_MEM&lt;/code&gt; error when you add services and characteristics with &lt;code&gt;sd_ble_gatts_service_add&lt;/code&gt; and &lt;code&gt;sd_ble_gatts_characteristic_add&lt;/code&gt; and the attribute table size is to small.  Thus, finding the correct attribute is a process of trail and error, i.e. increase the attribute table size until you dont get any errors.&lt;/p&gt;
&lt;p&gt;-Bjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>