<?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>Using predefined service</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/44120/using-predefined-service</link><description>I am currently using the nRF51422 device with SDK 11. I was wondering how to implement the battery life service and characteristic in my program. I have successfully advertised and connected to the nRF Connect app. If someone could please direct me to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 26 Feb 2019 07:11:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/44120/using-predefined-service" /><item><title>RE: Using predefined service</title><link>https://devzone.nordicsemi.com/thread/172925?ContentTypeID=1</link><pubDate>Tue, 26 Feb 2019 07:11:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7fbdf1eb-1771-4e02-b1da-1fb9c7d545ab</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;I think you could start in the API reference. There are two API&amp;#39;s, one called &lt;a href="https://www.nordicsemi.com/DocLib/Content/SDK_Doc/nRF5_SDK/v11-0-0/group__ble__sdk__srv__bas__c"&gt;Battery Service Client&lt;/a&gt;, and one called &lt;a href="https://www.nordicsemi.com/DocLib/Content/SDK_Doc/nRF5_SDK/v11-0-0/group__ble__sdk__srv__bas#details"&gt;Battery Service&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;You have to implement the functions you need in your code and include either &lt;strong&gt;ble_bas.c &lt;/strong&gt;and &lt;strong&gt;ble_bas.h&lt;/strong&gt; for the Battery Service, or &lt;strong&gt;ble_bas_c.c &lt;/strong&gt;and &lt;strong&gt;ble_bas_c.h&lt;/strong&gt; for the Battery Service Client.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>