<?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>Service Discover Returns: BLE_GATT_STATUS_ATTERR_ATTRIBUTE_NOT_FOUND</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/18623/service-discover-returns-ble_gatt_status_atterr_attribute_not_found</link><description>I&amp;#39;m using SD132 as a central, that I want to connect to a custom peripheral device. 
 I first add the 128-bit base UUID with: sd_ble_uuid_vs_add(&amp;amp;mys_base_uuid, &amp;amp;p_mys_c-&amp;gt;uuid_type); 
 I assign the type (offset) and 16-bit service UUID with: 
 mys_uuid</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 28 Dec 2016 17:08:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/18623/service-discover-returns-ble_gatt_status_atterr_attribute_not_found" /><item><title>RE: Service Discover Returns: BLE_GATT_STATUS_ATTERR_ATTRIBUTE_NOT_FOUND</title><link>https://devzone.nordicsemi.com/thread/71904?ContentTypeID=1</link><pubDate>Wed, 28 Dec 2016 17:08:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a14ae8d-0863-4d31-8a4b-3d4983c965ab</guid><dc:creator>c cook</dc:creator><description>&lt;p&gt;Solved it.  The problem was on the peripheral side.  I add my 128-bit UUID with sd_ble_uuid_vs_add(...), and the call returns a type 2.  I then assign the 16-bit service UUID and type to ble_uuid&lt;/p&gt;
&lt;pre&gt;&lt;code&gt; ble_uuid.type = p_light-&amp;gt;uuid_type;
ble_uuid.uuid = BLE_UUID_MYSWITCH_SRV
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;but had left the macro&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;BLE_UUID_BLE_ASSIGN(ble_uuid, BLE_UUID_MYSWITCH_SRV);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;in my code, which set the uuid.type = 1.  So when I called sd_ble_gatts_service_add(...) the wrong value for ble_uuid.type was used.  In my central code, listed in the question above, I was expecting the 128-bit UUID, but was getting a 16-bit value. After commenting out BLE_UUID_BLE_ASSIGN(...) on my peripheral side, my central app was successful in discovering the service&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Service Discover Returns: BLE_GATT_STATUS_ATTERR_ATTRIBUTE_NOT_FOUND</title><link>https://devzone.nordicsemi.com/thread/71903?ContentTypeID=1</link><pubDate>Wed, 28 Dec 2016 09:34:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:25261152-7612-4ca7-865a-10ac8bdd13d9</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I&amp;#39;m not sure. You are only registering one UUID with ble_db_discovery_evt_register()? Could you share your project so I can test them here?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>