<?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>Create a on/off control by using BLE in ble_app_blinky exemple</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/36644/create-a-on-off-control-by-using-ble-in-ble_app_blinky-exemple</link><description>Hello, 
 I would like to ask how to use the exemple &amp;#39;ble_app_blinky&amp;#39; (a device central and a device peripheral) to realize a function like this: 
 I press a button in one board (device central) then the command will be sent to another board (device peripheral</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 31 Jul 2018 13:01:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/36644/create-a-on-off-control-by-using-ble-in-ble_app_blinky-exemple" /><item><title>RE: Create a on/off control by using BLE in ble_app_blinky exemple</title><link>https://devzone.nordicsemi.com/thread/142176?ContentTypeID=1</link><pubDate>Tue, 31 Jul 2018 13:01:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e3094723-12a2-451a-b2eb-af2da5821469</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;&amp;quot;But in the function &amp;#39;static void button_event_handler(uint8_t pin_no, uint8_t button_action)&amp;#39;, I can see the log of the case &amp;#39;case LEDBUTTON_BUTTON:&amp;#39;&amp;nbsp; but it seen that it doesn&amp;#39;t work.&amp;quot;&lt;br /&gt;&lt;br /&gt;we need debug information...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Create a on/off control by using BLE in ble_app_blinky exemple</title><link>https://devzone.nordicsemi.com/thread/141105?ContentTypeID=1</link><pubDate>Tue, 24 Jul 2018 08:53:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e44bd58-816c-460b-bca1-bda6904f0781</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;&lt;span style="font-weight:400;"&gt;There are two button_event_handler(..) functions, one in the peripheral device and one in the central device, and both of the functions will react to a button press.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="text-decoration:underline;"&gt;&lt;span style="font-weight:400;"&gt;For the central device:&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The &amp;ldquo;Nordic LED Button Service&amp;rdquo; has two characteristics, which is Button and LED. The button_event_handler function inside the central device will write a value to the LED characteristic. If the button is pushed, it will write a value of 1 and if the button is released it will write a value of 0. The peripheral device will handle the write event by turning the LED on and off.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="text-decoration:underline;"&gt;&lt;span style="font-weight:400;"&gt;For the peripheral device:&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The button_event_handler in the code for the peripheral device will react to a button press by notifying the value of the Button characteristic. The central device will receive the notification and handle it in a similar manner as described above, and the LED will be turned on an off on the central board.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;This makes it possible to control the LED&amp;rsquo;s on the other device from both the central and the peripheral device.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Best regards Simon Iversen&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>