<?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>Characteristic Write followed by inline read (eg write command, read Ack/Nak response)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/43415/characteristic-write-followed-by-inline-read-eg-write-command-read-ack-nak-response</link><description>Hi 
 I am back on the firmware end of my project after several months doing the PC and Xamarin ends in C#... Trying to remember my C...! 
 
 My device has 3 MCU&amp;#39;s incl the Nordic as well as a mobile App (via BLE) and a PC (via USB). EG I have BLE, USB</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 07 Feb 2019 14:55:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/43415/characteristic-write-followed-by-inline-read-eg-write-command-read-ack-nak-response" /><item><title>RE: Characteristic Write followed by inline read (eg write command, read Ack/Nak response)</title><link>https://devzone.nordicsemi.com/thread/169961?ContentTypeID=1</link><pubDate>Thu, 07 Feb 2019 14:55:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3293891a-5fe3-4c54-9e70-b8ae046fa0eb</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello Nigel,&lt;/p&gt;
&lt;p&gt;I am not sure whether I actually understand your question. Is this a matter of latency, or just cleaning up the code?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regardless, it seems a bit messy turning on and off notifications all the time. I don&amp;#39;t understand the need to do this, but maybe that is the part of the question that I don&amp;#39;t understand. What are your ACK/NACK and datawaiting flags used for?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Is it possible to skip the ACK/NACK in the BLE part of your application, and just send the header and payload in one message? This will reduce the latency. Then check the header and decide whether or not to pass the payload on to one of the other peripherals?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>