<?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>use Gazell to open/close pipe</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/164/use-gazell-to-open-close-pipe</link><description>Hi everyone:
use Gazell to builder multi-node .
so i have to re-enable pipe number on connect state. 
 my Fragment code about &amp;quot;open/close pipe&amp;quot;.
but it not work correctly. 
 
nrf_gzll_disable();
init_ok = nrf_gzll_init(NRF_GZLL_MODE_HOST); 
(void</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 01 Aug 2013 02:05:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/164/use-gazell-to-open-close-pipe" /><item><title>RE: use Gazell to open/close pipe</title><link>https://devzone.nordicsemi.com/thread/913?ContentTypeID=1</link><pubDate>Thu, 01 Aug 2013 02:05:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a224832-28f5-41cb-9999-7f9fc012352c</guid><dc:creator>steven</dc:creator><description>&lt;p&gt;sorry it took me so long to reply.&lt;/p&gt;
&lt;p&gt;Now,i have question for gzll stack:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;add code to wait for gzll stop.
i try add the code ,but it will freeze  while(nrf_gzll_is_enabled())&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: use Gazell to open/close pipe</title><link>https://devzone.nordicsemi.com/thread/912?ContentTypeID=1</link><pubDate>Wed, 31 Jul 2013 12:37:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:24399fdb-20d2-422c-98a1-9e8e12b56adf</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi Steven,&lt;/p&gt;
&lt;p&gt;I am just updating this case with the solution that you&amp;#39;ve already found.&lt;/p&gt;
&lt;p&gt;The issue is that &amp;quot;nrf_gzll_disable()&amp;quot; does not wait until you are disabled. It will give you a callback function when the library has shut down properly.&lt;/p&gt;
&lt;p&gt;You can do this by polling the gazell library:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;
nrf_gzll_disable();
__WFI();
while(nrf_gzll_is_enabled())
{
}
// update configuration
...

&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Or if you are using the GZP library:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;
nrf_gzp_disable_gzll();
// update configuration
...

&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Best regards
Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>