<?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>ble blinky example</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/54764/ble-blinky-example</link><description>hello can someone help me solve this issue. i am not being able to controll this led . if i send any number the led will always turn on 
 
 Regards 
 
 
 
 
 static void led_col_write_handler(uint16_t conn_handle, ble_lbs_t * p_lbs,uint32_t led_color</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 26 Nov 2019 07:53:11 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/54764/ble-blinky-example" /><item><title>RE: ble blinky example</title><link>https://devzone.nordicsemi.com/thread/221999?ContentTypeID=1</link><pubDate>Tue, 26 Nov 2019 07:53:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1af327bb-cef5-4342-9b99-12148f5fafaa</guid><dc:creator>TylerD</dc:creator><description>&lt;p&gt;Did you try to add the additional&amp;nbsp;log print as I suggested in my previous reply?&amp;nbsp;Do you see the&amp;nbsp;log messages when you run the app?&lt;/p&gt;
&lt;p&gt;If you&amp;#39;re developing the app in Segger Embedded Studio (SES), then launching the program in debug mode is really easy. You just build the app and then&amp;nbsp;choose the menu &lt;strong&gt;Debug -&amp;gt; Go&lt;/strong&gt;. It will load the program to target, set a breakpoint at main() function.&lt;/p&gt;
&lt;p&gt;If you don&amp;#39;t&amp;nbsp;have any idea how to debug a&amp;nbsp;basic C application (single stepping, breakpoints etc) then sorry, I don&amp;#39;t have bandwidth to explain it to you.&amp;nbsp;I&amp;#39;m sure there is lots of great material online (tutorials, youtube videos etc) that you can use as reference.&lt;/p&gt;
&lt;p&gt;EDIT: see this video by Nordic,&amp;nbsp;titled &amp;quot;SEGGER Embedded Studio - Basics of debugging&amp;quot;. Seems like a good stepping stone&amp;nbsp;&lt;a href="https://www.youtube.com/watch?v=uP8RYgYGRvI"&gt;https://www.youtube.com/watch?v=uP8RYgYGRvI&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble blinky example</title><link>https://devzone.nordicsemi.com/thread/221936?ContentTypeID=1</link><pubDate>Mon, 25 Nov 2019 18:17:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f69cb6c-03c8-45fb-8b57-54d970dee7e8</guid><dc:creator>zouzanda</dc:creator><description>&lt;p&gt;sorry for bothering&amp;nbsp; u but i am new to nordic and i dont know how to debug can you please assist me&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble blinky example</title><link>https://devzone.nordicsemi.com/thread/221698?ContentTypeID=1</link><pubDate>Sat, 23 Nov 2019 17:30:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f39b5a50-0f57-4ee7-8d0f-193f2ade6967</guid><dc:creator>TylerD</dc:creator><description>&lt;p&gt;Have you tried debugging and&amp;nbsp;setting a breakpoint in that function? Then single-stepping to see how it exactly works?&lt;/p&gt;
&lt;p&gt;Alternatively, you could try to add some debug prints. E.g. before the if-statement print the value of the led_color variable:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;NRF_LOG_INFO(&amp;quot;Received value: %d&amp;quot;, led_color);&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble blinky example</title><link>https://devzone.nordicsemi.com/thread/221697?ContentTypeID=1</link><pubDate>Sat, 23 Nov 2019 15:29:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ee119cca-16be-49f4-8a42-8a28f992481d</guid><dc:creator>zouzanda</dc:creator><description>&lt;p&gt;hello i tried both and i get same result = and == any idea why&lt;/p&gt;
&lt;p&gt;thanks in advance&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble blinky example</title><link>https://devzone.nordicsemi.com/thread/221696?ContentTypeID=1</link><pubDate>Sat, 23 Nov 2019 15:14:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1aa91e29-54de-4abf-9535-5f4f9b1f1a5c</guid><dc:creator>TylerD</dc:creator><description>&lt;p&gt;Problem is here:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;if (led_color=22)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You are using the assignment operator (=) but you should be using the == operator for comparison. This is elementary C programming stuff. I wonder if the compiler gives you a warning&amp;nbsp;for those lines? Most compilers do (depending of course on what compiler switches are used)&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble blinky example</title><link>https://devzone.nordicsemi.com/thread/221695?ContentTypeID=1</link><pubDate>Sat, 23 Nov 2019 14:58:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e228094-b87c-4a3d-9f59-5768e06c6d5f</guid><dc:creator>zouzanda</dc:creator><description>&lt;p&gt;ANY HELP???!!! PLEASE&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>