<?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>SDK17.0.2 code wierd thing, code doesn&amp;#39;t execute</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/73018/sdk17-0-2-code-wierd-thing-code-doesn-t-execute</link><description>Hi, 
 I&amp;#39;m playing 52832 ble_app_hrs_c Central example with latest SDK 17.0.2 and SD7.2.0. 
 The wierd thing is that after the service discovered, next enable cccd. But nrf_ble_gq_item_add is not executing. 
 See the info below, I put a log just before</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 19 Mar 2021 14:21:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/73018/sdk17-0-2-code-wierd-thing-code-doesn-t-execute" /><item><title>RE: SDK17.0.2 code wierd thing, code doesn't execute</title><link>https://devzone.nordicsemi.com/thread/300973?ContentTypeID=1</link><pubDate>Fri, 19 Mar 2021 14:21:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7c3ea9f6-2252-4259-9ca6-8bcb9d4491f9</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user=""]See the info below, I put a log just before it, you can see from the RTT viewer that it executed, but the following log &amp;quot;Adding item to the queue....&amp;quot; doesn&amp;#39;t show up.[/quote]
&lt;p&gt;Are you only using the deferred logging option? Have you changed your default logger severity level, since you are using DEBUG level severity for your statements? Are you using a nRF52 Developement Kit, or a custom board?&lt;/p&gt;
[quote user=""]I tried many times, almost crazy, the new SDK use a QUEUE thing that make the code a bit complicate. Is there any benefit for this?[/quote]
&lt;p&gt;The GATT queue is used to buffer GATT requests to the SoftDevice, so it may process them at a more opportune time.&lt;br /&gt;This is very useful when frequent requests are made to the SoftDevice.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK17.0.2 code wierd thing, code doesn't execute</title><link>https://devzone.nordicsemi.com/thread/300956?ContentTypeID=1</link><pubDate>Fri, 19 Mar 2021 13:44:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef98e8e0-03b7-4545-be3f-1492e5ff0be5</guid><dc:creator>Turbo J</dc:creator><description>&lt;p&gt;Notice the dual &amp;quot;&amp;lt;debug&amp;gt;&amp;quot; in the next line? The debug message was lost due to buffer full.&lt;/p&gt;
&lt;p&gt;The queue allows for printing messages in timing sensitive code. I recommend either printing fewer messages or increasing the log buffer size.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>