<?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>The device doesn&amp;#39;t advertise after disconnecting during sending BLE data</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/94736/the-device-doesn-t-advertise-after-disconnecting-during-sending-ble-data</link><description>Hello Group, 
 I&amp;#39;m working on the Nordic nRF52832 dev kit, nRF SDK version 1.9.1, with SEGGER Embedded Studio, based on the sample project ble_app_uart to send BLE data of a sensor. I have a problem with the following: 
 
 During BLE transferring the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 15 Dec 2022 18:38:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/94736/the-device-doesn-t-advertise-after-disconnecting-during-sending-ble-data" /><item><title>RE: The device doesn't advertise after disconnecting during sending BLE data</title><link>https://devzone.nordicsemi.com/thread/400943?ContentTypeID=1</link><pubDate>Thu, 15 Dec 2022 18:38:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b0b05092-0383-428c-abb6-39624f8f8695</guid><dc:creator>Jack Phan</dc:creator><description>&lt;p&gt;Hello Group,&lt;/p&gt;
&lt;p&gt;I found the problem.&lt;/p&gt;
&lt;p&gt;I got the error NRF_ERROR_INVALID_STATE, and the function APP_ERROR_CHECK(err_code) went to crash.&lt;/p&gt;
&lt;p&gt;Thanks a lot for your time,&lt;/p&gt;
&lt;p&gt;Jack&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The device doesn't advertise after disconnecting during sending BLE data</title><link>https://devzone.nordicsemi.com/thread/400475?ContentTypeID=1</link><pubDate>Tue, 13 Dec 2022 21:21:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f83ec286-bc63-40bd-ac35-80f997d23495</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I read the first post again. I think you might use the nRF5 SDK since you said it&amp;#39;s&amp;nbsp;based on the sample project ble_app_uart from nRF5SDK and from the code snippet is also from nRF5SDK. so I correct my answer. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;In the nRF5,&amp;nbsp;the code that starts the advertising again is at BLE_GAP_EVT_DISCONNECTED event in ble_advertising_on_ble_evt() in ble_advertising.c. It also works in the&amp;nbsp;ble_app_uart example.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The device doesn't advertise after disconnecting during sending BLE data</title><link>https://devzone.nordicsemi.com/thread/400247?ContentTypeID=1</link><pubDate>Mon, 12 Dec 2022 20:05:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b4846b69-c2d9-4bc4-a5f8-87d4ae009861</guid><dc:creator>Jack Phan</dc:creator><description>&lt;p&gt;Hi Amanda,&lt;/p&gt;
&lt;p&gt;Can you detail about a little more about &amp;quot;&lt;span&gt;The&amp;nbsp;&lt;/span&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v1.9.1/samples/bluetooth/peripheral_uart/src/main.c#L379"&gt;disconnect callback&lt;/a&gt;&lt;span&gt;&amp;nbsp;has the feature you request&amp;quot;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks a lot,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Jack&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The device doesn't advertise after disconnecting during sending BLE data</title><link>https://devzone.nordicsemi.com/thread/400225?ContentTypeID=1</link><pubDate>Mon, 12 Dec 2022 16:48:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d6cc6d08-a710-419b-a65a-4fb996d41f73</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]I&amp;#39;m working on the Nordic nRF52832 dev kit, nRF SDK version 1.9.1, with SEGGER Embedded Studio, based on the sample project ble_app_uart to send BLE data of a sensor. I have a problem with the following:[/quote]
&lt;p&gt;If you are using NCS v1.9.1, I would suggest you use&amp;nbsp;&lt;span&gt;samples/bluetooth/peripheral_uart as the base.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;br /&gt;Amanda H.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>