<?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>Show the &amp;quot;Received Bytes&amp;quot; on nrf52.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/24985/show-the-received-bytes-on-nrf52</link><description>Hello everyone! I am working with 2 board nrf52840 with BLE_Blinky_example. When I press button1 on client board, LED1 on sever board is was toggle. I think that : Client board was send one ( or more) byte(s) to server board. And how can I get this bytes</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 11 Sep 2017 07:36:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/24985/show-the-received-bytes-on-nrf52" /><item><title>RE: Show the "Received Bytes" on nrf52.</title><link>https://devzone.nordicsemi.com/thread/98399?ContentTypeID=1</link><pubDate>Mon, 11 Sep 2017 07:36:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b5e3393-dca1-4840-b595-faa6d0222791</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;The SoftDevice itself is the same, but the examples configures and uses the SoftDevice in different ways.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Show the "Received Bytes" on nrf52.</title><link>https://devzone.nordicsemi.com/thread/98400?ContentTypeID=1</link><pubDate>Mon, 11 Sep 2017 04:15:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ad27c7ad-e5c6-4d1c-a00a-1fccc947c45b</guid><dc:creator>MainOFF</dc:creator><description>&lt;p&gt;Thanks for your information.I have a last question. Do have any differrent between SoftDevice of BLE_LED_Blinky example and SoftDevice of other example?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Show the "Received Bytes" on nrf52.</title><link>https://devzone.nordicsemi.com/thread/98398?ContentTypeID=1</link><pubDate>Fri, 08 Sep 2017 08:48:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e98df92c-fb3b-4f81-9d5c-b0e53da7b185</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;For writable characteristics, the stack (SoftDevice) will automatically receive and store any writes to a database(inside the SoftDevice) for you. You will then receive an event that it happened, with a copy of the data. I.e. every time the state changes the &lt;code&gt;led_write_handler()&lt;/code&gt; will be called, and you can read LED state from the  &lt;code&gt;led_state&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;If you want to have a look at the value at a later point, you can use &lt;code&gt;sd_ble_gatts_value_get()&lt;/code&gt; to fetch the current value.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Show the "Received Bytes" on nrf52.</title><link>https://devzone.nordicsemi.com/thread/98397?ContentTypeID=1</link><pubDate>Thu, 07 Sep 2017 17:38:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9315e055-d06a-44f3-becb-8fd2a034b715</guid><dc:creator>MainOFF</dc:creator><description>&lt;p&gt;I was see that on terminal. But I want to know : which is the variable &amp;quot;hold&amp;quot; the value was recived.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Show the "Received Bytes" on nrf52.</title><link>https://devzone.nordicsemi.com/thread/98396?ContentTypeID=1</link><pubDate>Thu, 07 Sep 2017 14:05:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:350bdffc-5610-4cd6-bc72-7abb513c21ee</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Client board was send one ( or more)
byte(s) to server board.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;That is correct. The client(central) sets the LED characteristic on the serer(peripheral) to 1 to turn the LED on, and sets the value to 0 to turn the LED off. When this happens, the default-behaviour is that the UART prints the message &lt;code&gt;&amp;quot;Received LED ON&amp;quot;&lt;/code&gt; and  &lt;code&gt;&amp;quot;Received LED OFF&amp;quot;&lt;/code&gt;. So if you connect with e.g. termite terminal, you should see this printed on the terminal.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>