<?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>NRF52 code stuck after disconnection</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/29683/nrf52-code-stuck-after-disconnection</link><description>Hi, 
 We are using nrf52832 board with sdk14.0. We are facing two issues: 
 
 
 Our use case is to send the data continuously when the notification is enable and stop sending the data either when notification char is disabled or disconnection occur</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 23 Jan 2018 12:47:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/29683/nrf52-code-stuck-after-disconnection" /><item><title>RE: NRF52 code stuck after disconnection</title><link>https://devzone.nordicsemi.com/thread/117815?ContentTypeID=1</link><pubDate>Tue, 23 Jan 2018 12:47:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:03708ab3-3e2d-41f1-a6b9-841460fbabed</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;What loop is the code stuck in? Have you tried &lt;a href="https://devzone.nordicsemi.com/question/60125/my-device-is-freezing-and-restarting/"&gt;debugging&lt;/a&gt; to see if any error codes are returned from any functions?&lt;/li&gt;
&lt;li&gt;You should use the event handles to check which characteristics are written. I recommend that you have a look at the &lt;code&gt;on_write()&lt;/code&gt; and &lt;code&gt;ble_*_on_ble_evt()&lt;/code&gt; functions in the ble_services implemented in the SDK, for instance ble_hrs.c or ble_nus.c.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>