<?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>About Service and characteristic using method?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/17656/about-service-and-characteristic-using-method</link><description>Hi 
 I am currently working on a BLE based hardware but I am a little confused about the terms such as service, characteristics... etc. 
 Let&amp;#39;s say, I would like to control 2 different IO, an LED or a buzzer, based on received data and this data should</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 10 Nov 2016 12:43:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/17656/about-service-and-characteristic-using-method" /><item><title>RE: About Service and characteristic using method?</title><link>https://devzone.nordicsemi.com/thread/67894?ContentTypeID=1</link><pubDate>Thu, 10 Nov 2016 12:43:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:abdc2996-b100-4e5c-9847-cb29337eff2c</guid><dc:creator>Kyle Krueger</dc:creator><description>&lt;p&gt;Hi Eyup,&lt;/p&gt;
&lt;p&gt;If you are new to BLE it might be worth your time to follow along with this &lt;a href="https://devzone.nordicsemi.com/tutorials/8/ble-services-a-beginners-tutorial/"&gt;Nordic Tutorial&lt;/a&gt;. It should clarify the differences between a service and characteristic.&lt;/p&gt;
&lt;p&gt;For some more detail I would check out this &lt;a href="https://github.com/tigoe/BLEDocs/wiki/Introduction-to-Bluetooth-LE"&gt;Intro To BLE&lt;/a&gt;. There you will find more information about your question for best practices. I would recommend against using one string because of the extra overhead in parsing it, and that it would take up a lot of your space in the characteristic. Using an int masked for three sections would be more efficient.&lt;/p&gt;
&lt;p&gt;I hope the guides are helpful.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: About Service and characteristic using method?</title><link>https://devzone.nordicsemi.com/thread/67895?ContentTypeID=1</link><pubDate>Thu, 10 Nov 2016 12:40:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0388340c-e380-4f97-8b54-69f6a5d7661d</guid><dc:creator>Cyril Praz</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;You have here a good guide to start creating a service:
&lt;a href="https://devzone.nordicsemi.com/tutorials/8/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;and if you are looking into the BLE specification you can find that it said :&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;A service is a collection of data and
associated behaviors to accomplish a
particular function or feature. [...]
A service definition may contain […]
mandatory characteristics and optional
characteristics.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;You can find here some standard services to see some examples if you want to create your own service:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.bluetooth.com/specifications/gatt"&gt;www.bluetooth.com/.../gatt&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>