<?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>How to develop a GATT Client application?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/291/how-to-develop-a-gatt-client-application</link><description>I have a central device , that acting as a gatt server. the service is customize, and 128bit- primary serivice UUID ,its characteristics&amp;#39; UUIDs(128bit) are all known, how to discovery the service and characteristics in nrf51822 peripheral?
I don&amp;#39;t find</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 19 Aug 2013 06:51:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/291/how-to-develop-a-gatt-client-application" /><item><title>RE: How to develop a GATT Client application?</title><link>https://devzone.nordicsemi.com/thread/1557?ContentTypeID=1</link><pubDate>Mon, 19 Aug 2013 06:51:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eea97db9-b005-456a-8f5e-8a699ce1c399</guid><dc:creator>Carles</dc:creator><description>&lt;p&gt;Hi Joe,&lt;/p&gt;
&lt;p&gt;You will need to enable notifications and/or indications by writing to the remote device&amp;#39;s Client Characteristic Configuration Descriptor (CCCD) for the relevant Characteristic, setting a &amp;quot;1&amp;quot; in the relevant bits.&lt;/p&gt;
&lt;p&gt;Before that of course, you will have to discover the service, characteristic and descriptors that are of interest to you, so the procedure would be a sequence of the following in the Message Sequence Chart procedures:&lt;/p&gt;
&lt;p&gt;GATTC Primary Service Discovery
GATTC Characteristic Discovery
GATTC Descriptor Discovery
GATTC Characteristic or Descriptor Value Write&lt;/p&gt;
&lt;p&gt;You can find example code in the SDK that implements this is ble_ans_c.c (see function cccd_configure() )&lt;/p&gt;
&lt;p&gt;Hope that helps.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Carles&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to develop a GATT Client application?</title><link>https://devzone.nordicsemi.com/thread/1556?ContentTypeID=1</link><pubDate>Sat, 17 Aug 2013 08:50:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c1898a0-cc8c-41a1-8320-c4ee182e0080</guid><dc:creator>Yalcin Akdogan</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks for clear response. One further question for same use case.&lt;/p&gt;
&lt;p&gt;How can you subscribe to GATT Servers discovered characteristic with &amp;quot;Indicate&amp;quot; or &amp;quot;Notify&amp;quot; ?&lt;/p&gt;
&lt;p&gt;I saw the Message Sequence Charts  &amp;quot;GATTC Handle Value Indication&amp;quot; and &amp;quot;Notification&amp;quot;, but missing the part how to enable GATT Server to send this values. I could not see any GATTC function to do it.&lt;/p&gt;
&lt;p&gt;Best Regards.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to develop a GATT Client application?</title><link>https://devzone.nordicsemi.com/thread/1555?ContentTypeID=1</link><pubDate>Thu, 15 Aug 2013 07:30:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05948d98-c20b-4e73-9135-66cb35345d20</guid><dc:creator>Carles</dc:creator><description>&lt;p&gt;Hi there,&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;128bit- primary serivice UUID ,its characteristics&amp;#39; UUIDs(128bit) are all known, how to discovery the service and characteristics in nrf51822 peripheral?&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;You need to do this in 2 steps with the S110:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Use sd_ble_uuid_vs_add() to add all the 128-bit UUIDs that your central uses&lt;/li&gt;
&lt;li&gt;Use the GATTC functions to discovery your services characteristics, for example:&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;sd_ble_gattc_primary_services_discover()
sd_ble_gattc_characteristics_discover()&lt;/p&gt;
&lt;p&gt;While using the UUIDs that you previously added.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Carles&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to develop a GATT Client application?</title><link>https://devzone.nordicsemi.com/thread/1552?ContentTypeID=1</link><pubDate>Thu, 15 Aug 2013 04:38:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b034de40-a685-493a-84f6-c1a12ab331d5</guid><dc:creator>Bastiaan</dc:creator><description>&lt;p&gt;i must implement it as ble_ans_c.c&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to develop a GATT Client application?</title><link>https://devzone.nordicsemi.com/thread/1553?ContentTypeID=1</link><pubDate>Thu, 15 Aug 2013 04:38:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b204dabf-e439-4410-8a1b-1f4cc8813850</guid><dc:creator>Guest</dc:creator><description>&lt;p&gt;i must implement it as ble_ans_c.c&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to develop a GATT Client application?</title><link>https://devzone.nordicsemi.com/thread/1554?ContentTypeID=1</link><pubDate>Thu, 15 Aug 2013 04:12:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e35a6491-4b48-4934-bcd7-6ba51c8990c3</guid><dc:creator>Guest</dc:creator><description>&lt;p&gt;the application should be  like Alert Notification Service Client. but in my situation, the Service in the central device end  just expose UUIDs and permissions(write or notify).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to develop a GATT Client application?</title><link>https://devzone.nordicsemi.com/thread/1558?ContentTypeID=1</link><pubDate>Thu, 15 Aug 2013 04:12:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ddc23a1-a65a-4813-87e8-4ba172eb22ce</guid><dc:creator>Bastiaan</dc:creator><description>&lt;p&gt;the application should be  like Alert Notification Service Client. but in my situation, the Service in the central device end  just expose UUIDs and permissions(write or notify).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>