<?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>Battery level characteristics not updated</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/7146/battery-level-characteristics-not-updated</link><description>I want to add a battery level characteristics to a custom service. Here is my approach: 
 In main.c, I add a timer to update battery level periodically 
 
 void data_update_timer_timeout_handler(void * p_context)
{
 battery_level_update(&amp;amp;m_sss);</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 08 Jun 2015 12:53:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/7146/battery-level-characteristics-not-updated" /><item><title>RE: Battery level characteristics not updated</title><link>https://devzone.nordicsemi.com/thread/25259?ContentTypeID=1</link><pubDate>Mon, 08 Jun 2015 12:53:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c7d7e3e0-3b00-4586-9593-3703e9fe5551</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Hi. Have you tested that your timer handler is working properly? E.g. by toggling an LED? Did you remember to increase &lt;code&gt;#define APP_TIMER_MAX_TIMERS&lt;/code&gt; by one to accommodate for your additional custom timer?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Battery level characteristics not updated</title><link>https://devzone.nordicsemi.com/thread/25258?ContentTypeID=1</link><pubDate>Wed, 20 May 2015 04:03:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ba6f5b99-baea-4bf2-bcfd-c06676f6f08f</guid><dc:creator>diode</dc:creator><description>&lt;p&gt;I started timer after timers_init(), but I didn&amp;#39;t pasted that part in the question. I can confirm timer starting part worked.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Battery level characteristics not updated</title><link>https://devzone.nordicsemi.com/thread/25257?ContentTypeID=1</link><pubDate>Wed, 20 May 2015 04:00:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fb540367-0771-4845-87a8-2b2663ed187c</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;Where do you start the timer?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>