<?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>How to use data received over BLE UART simulation to toggle pin</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/36618/how-to-use-data-received-over-ble-uart-simulation-to-toggle-pin</link><description>Hello, 
 I&amp;#39;m using SDK 15 and I just started to run the &amp;quot;ble_app_uart&amp;quot; example code. I&amp;#39;m hoping someone can help me find where the data sent from the nRF UART mobile app is stored in the nRF52DK memory. I want to use this data to do a simple task like</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 20 Jul 2018 00:37:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/36618/how-to-use-data-received-over-ble-uart-simulation-to-toggle-pin" /><item><title>RE: How to use data received over BLE UART simulation to toggle pin</title><link>https://devzone.nordicsemi.com/thread/140747?ContentTypeID=1</link><pubDate>Fri, 20 Jul 2018 00:37:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:234bc4a8-7656-400f-a0e6-8a557f381f4c</guid><dc:creator>thomaslogan</dc:creator><description>&lt;p&gt;Alrighty thank you brother&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use data received over BLE UART simulation to toggle pin</title><link>https://devzone.nordicsemi.com/thread/140745?ContentTypeID=1</link><pubDate>Thu, 19 Jul 2018 21:49:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a51d9040-8494-4c2e-b3de-8c82de167660</guid><dc:creator>jsample</dc:creator><description>&lt;p&gt;Yes, inside of the &amp;quot;if (p_evt-&amp;gt;type == BLE_NUS_EVT_RX_DATA) &amp;quot; statement.&lt;/p&gt;
&lt;p&gt;Also, you&amp;#39;ll probably want to look for a character &amp;#39;1&amp;#39;, not the value 1.&amp;nbsp; (I don&amp;#39;t think you can send raw values in the nRF mobile app)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use data received over BLE UART simulation to toggle pin</title><link>https://devzone.nordicsemi.com/thread/140741?ContentTypeID=1</link><pubDate>Thu, 19 Jul 2018 20:01:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bdac345b-6950-4cc4-bf97-a89dd8ac781e</guid><dc:creator>thomaslogan</dc:creator><description>&lt;p&gt;So I&amp;#39;d write something along the lines of&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;if (&lt;/strong&gt;&lt;strong&gt;p_evt-&amp;gt;params.rx_data.p_data[i] == 1){&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //do something&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;}&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;inside of nus_data_handler()?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use data received over BLE UART simulation to toggle pin</title><link>https://devzone.nordicsemi.com/thread/140740?ContentTypeID=1</link><pubDate>Thu, 19 Jul 2018 19:34:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e771e36-d643-4fc2-9e73-c7ae4fe42be8</guid><dc:creator>jsample</dc:creator><description>&lt;p&gt;The data from the Nordic UART Service shows up in nus_data_handler in main.c.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>