<?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>Declaring a service structure in your application</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/22557/declaring-a-service-structure-in-your-application</link><description>Hi, 
 I am trying to develop the ble_app_template project into a custom ble application. 
 Where is says 
 /* YOUR_JOB: Declare all services structure you application is using
 static ble_xx_service_t m_xxxs;
 static ble_yy_service_t m_yys;
*/</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 06 Jun 2017 09:29:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/22557/declaring-a-service-structure-in-your-application" /><item><title>RE: Declaring a service structure in your application</title><link>https://devzone.nordicsemi.com/thread/88758?ContentTypeID=1</link><pubDate>Tue, 06 Jun 2017 09:29:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:968ac18b-17df-4d25-a238-46450e422d95</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;HI Michael,&lt;/p&gt;
&lt;p&gt;you can take a look at &lt;a href="https://github.com/bjornspockeli/custom_ble_service_example"&gt;this&lt;/a&gt; tutorial, it shows you how to create a custom service with one characteristic, using the ble_app_template example in the SDK.&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Bjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Declaring a service structure in your application</title><link>https://devzone.nordicsemi.com/thread/88757?ContentTypeID=1</link><pubDate>Tue, 06 Jun 2017 05:05:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa898f44-78a3-473c-a9e8-466b68c59e9d</guid><dc:creator>Roger Clark</dc:creator><description>&lt;p&gt;Even if you don&amp;#39;t want to use the UART service, it contains an &amp;quot;example&amp;quot; of how to write the service structure stuff, and the NUS is a good example of a simple service&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Declaring a service structure in your application</title><link>https://devzone.nordicsemi.com/thread/88756?ContentTypeID=1</link><pubDate>Tue, 06 Jun 2017 04:55:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:421891ab-3bda-4d84-b908-e73c69cbae24</guid><dc:creator>MichaelNordicUser</dc:creator><description>&lt;p&gt;I don&amp;#39;t wan to use the UART service. I want to create a custom service from a basic template. Can you please provide an example of a service structure declaration?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Declaring a service structure in your application</title><link>https://devzone.nordicsemi.com/thread/88755?ContentTypeID=1</link><pubDate>Tue, 06 Jun 2017 04:12:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:20ff9b26-3117-4304-bd8a-d2ecf480bfae</guid><dc:creator>Roger Clark</dc:creator><description>&lt;p&gt;Depends if you app needs to have a service, its perfectly possible to have an app which just advertises data but is not connectable..&lt;/p&gt;
&lt;p&gt;But if your app will have a connectable service (or services), the normal advice is to not start from the blank template if you are a beginner, but start by copying the exmple which is most similar to your product requirements&lt;/p&gt;
&lt;p&gt;If you are developing a custom service, the best example to use is the ble_app_uart as this uses the NUS service which is a custom service in the first place.&lt;/p&gt;
&lt;p&gt;Then just duplicate the NUS Service to make your own service and update the nble_app_uart template to use your own custom service(s)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>