<?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>BLE NUS receiver buffer not cleared completely</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/83531/ble-nus-receiver-buffer-not-cleared-completely</link><description>Hi 
 I am working on a custom BLE NUS using the ble nus peripheral example. I am currently using bluez on a linux machine as client and a nrf52840 dongle as server. I can send and receive messages just fine but the receive buffer on the dongle is not</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 11 Jan 2022 12:11:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/83531/ble-nus-receiver-buffer-not-cleared-completely" /><item><title>RE: BLE NUS receiver buffer not cleared completely</title><link>https://devzone.nordicsemi.com/thread/347148?ContentTypeID=1</link><pubDate>Tue, 11 Jan 2022 12:11:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c5c8ec87-7587-471b-adc6-97cd8ec34ceb</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;There are numerous ways this could happen, depending on the underlying APIs, string formats, the way you print the strings, buffers used, etc.&lt;/p&gt;
&lt;p&gt;I suspect this to be related to different ways of handling strings and buffers: Some combination of reusing buffers, strings or buffers where you need to keep track of length acutally used, and c style (null terminated) strings. However, in order to tell what is going on, I need full details of code receiving, handling, buffering and printing the strings.&lt;/p&gt;
&lt;p&gt;What SDK, version and exact example are we talking about, and what changes (if any) have you done to it?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>