<?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>UARTE Driver Help</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/67532/uarte-driver-help</link><description>Good afternoon 
 
 i have built a small program for the uarte, using the example however im not managing to edit the event handler such that depending onthe text i recive i perform certain tasks. 
 
 Basically i would like to implement some function which</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 26 Oct 2020 10:25:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/67532/uarte-driver-help" /><item><title>RE: UARTE Driver Help</title><link>https://devzone.nordicsemi.com/thread/276818?ContentTypeID=1</link><pubDate>Mon, 26 Oct 2020 10:25:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a8862a04-4ba4-4798-882d-ea753c244f36</guid><dc:creator>NikTheNordicUser</dc:creator><description>&lt;p&gt;THank you will do &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UARTE Driver Help</title><link>https://devzone.nordicsemi.com/thread/276811?ContentTypeID=1</link><pubDate>Mon, 26 Oct 2020 10:14:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:436bbab5-b70a-4c64-a6bf-e46b86e19a70</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;This is not a nordic related &amp;quot;issue&amp;quot;, or an &amp;quot;issue&amp;quot; at all, really.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you know that the message will always end with &amp;quot;$&amp;quot;, then you need to check the three bytes before that. I suggest you look at the ble_app_uart example for how to store the incoming data. You will get an event for each incoming byte, but this example checks if the last byte is a linefeed, or if the buffer is full. At that point, it will send the packet over BLE. Perhaps you can reuse some of the same logic to do what you want to do.&amp;nbsp;&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><item><title>RE: UARTE Driver Help</title><link>https://devzone.nordicsemi.com/thread/276740?ContentTypeID=1</link><pubDate>Sat, 24 Oct 2020 17:16:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c2978469-2c26-4170-8842-2e42eff87e39</guid><dc:creator>NikTheNordicUser</dc:creator><description>&lt;p&gt;i have adjusted the code to perform a loop back, my next step therefore is to see whats in the readbuffer and thus depending on whats in it persom different tasks. i.e if i recive 123$ then i call the function 123.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;may i please get some help&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UARTE Driver Help</title><link>https://devzone.nordicsemi.com/thread/276662?ContentTypeID=1</link><pubDate>Fri, 23 Oct 2020 13:58:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:66e87566-afab-4a33-8775-3f282060bb3a</guid><dc:creator>NikTheNordicUser</dc:creator><description>&lt;p&gt;so far i have only managed to get the write to work, but i have a read function i just need some help with how to do the event handler part&lt;/p&gt;
&lt;p&gt;but yes as you said if i read 123$ i would have a function called 123&lt;/p&gt;
&lt;p&gt;if i read 456$ then i have a function called 456&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UARTE Driver Help</title><link>https://devzone.nordicsemi.com/thread/276627?ContentTypeID=1</link><pubDate>Fri, 23 Oct 2020 12:34:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c26905d8-5b8e-4402-bd96-f9cbbc3a30ee</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;So how far did you come?&lt;/p&gt;
&lt;p&gt;Do you see the input bytes?&lt;/p&gt;
&lt;p&gt;Do I understand correctly if this is the case?&lt;/p&gt;
&lt;p&gt;If you receive the string &amp;quot;123&amp;quot; you should call one function, but if you receive the string &amp;quot;456&amp;quot; you should do another task?&lt;/p&gt;
&lt;p&gt;What is it that you are stuck on? How to interpret the incoming string?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>