<?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>Observing stuck thread in Android BLE Library while registering characteristics</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/58674/observing-stuck-thread-in-android-ble-library-while-registering-characteristics</link><description>Hello, 
 
 We are leveraging the Android BLE Library from Nordic available on GitHub (release v2.1.1). 
 In a scenario where there are repeated requests to connect as a result of being on the edge of the link budget, we&amp;#39;ve observed that the thread responsible</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 11 Mar 2020 11:43:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/58674/observing-stuck-thread-in-android-ble-library-while-registering-characteristics" /><item><title>RE: Observing stuck thread in Android BLE Library while registering characteristics</title><link>https://devzone.nordicsemi.com/thread/239312?ContentTypeID=1</link><pubDate>Wed, 11 Mar 2020 11:43:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:617570c7-f80f-46af-b7cd-73ba69bc7d12</guid><dc:creator>Aleksander Nowakowski</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;All non-timeoutable requests are waiting for the system callback. In general a new request could not be performed when a previous one still didn&amp;#39;t get a callback. But of course we know how it is.&lt;/p&gt;
&lt;p&gt;To cancel current task and all queued, call&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;pre class="ui-code" data-mode="java"&gt;cancelQueue()&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;in the manager. This will cancel the current one with REASON_CANCELLED. The state of the device is undefined at that moment, so you may need to disconnect and reconnect, etc. I have never tried this. Of course, as you&amp;#39;re using synchronous calls, call this method from another thread, as that one is hanging.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>