<?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>Difference in adding characteristics from example codes</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/66628/difference-in-adding-characteristics-from-example-codes</link><description>Dear community, 
 I am trying to implement a custom service, however I am struggling because many example codes are for PCA10040, Softdevice S132 and/or for older SDK&amp;#39;s. I&amp;#39;ve basically tried to implement it based on: 
 
 the custom BLE service example</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 07 Oct 2020 11:42:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/66628/difference-in-adding-characteristics-from-example-codes" /><item><title>RE: Difference in adding characteristics from example codes</title><link>https://devzone.nordicsemi.com/thread/273472?ContentTypeID=1</link><pubDate>Wed, 07 Oct 2020 11:42:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:049f0f6a-c7bf-4708-9226-5f6943843312</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Excellent news Alexander, good to hear you were able to get it running &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I will consider the case closed then.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Difference in adding characteristics from example codes</title><link>https://devzone.nordicsemi.com/thread/273347?ContentTypeID=1</link><pubDate>Wed, 07 Oct 2020 05:24:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0cde0de5-0b63-49e6-bcf0-cc2248d86abf</guid><dc:creator>AHass</dc:creator><description>&lt;p&gt;Hi Torbj&amp;oslash;rn,&lt;/p&gt;
&lt;p&gt;I successfully implemented my own GATT profile based on the Nordic UART service as you suggested. It was fast and easy.&lt;/p&gt;
&lt;p&gt;Thank you for your great support!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Difference in adding characteristics from example codes</title><link>https://devzone.nordicsemi.com/thread/272754?ContentTypeID=1</link><pubDate>Fri, 02 Oct 2020 13:36:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d83272c9-05af-4e43-86a0-6dee7024b800</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;In general I would recommend using either the Nordic UART service (NUS) or the Led Button service (LBS) from SDK v17.0.2 as a starting point if you want to make your own proprietary service(s).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Both of these services are quite similar in that they set up one characteristic for sending data from the client to the server (write), and one characteristic for sending data&amp;nbsp;from the server to the client (notify). The only difference is that LBS is set up to send a single byte back and forth, while NUS is set up to send strings of varying lengths, making it more suitable if you want to send a large amount of data.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;To modify one of these services to your own requirements you can simply copy and rename the existing files, replace the UUID with one of your own, and change the implementation as needed to add or remove characteristics or change the characteristic properties.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As for the differences between the examples, the various service SDK implementations vary a bit in how they configure and set up the characteristics, but in the end it all boils down to a series of calls to the&amp;nbsp;sd_ble_gatts_service_add(..) and&amp;nbsp;sd_ble_gatts_characteristic_add(..) functions.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>