<?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>BLE project</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/57247/ble-project</link><description>I am trying to use nrf51822 as central device and connect it to another nrf51822 acting as a peripheral device ..and i want the central to print the rssi value with respect to distance from the peripheral and i am using the example from the sdk itself</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 03 Feb 2020 14:38:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/57247/ble-project" /><item><title>RE: BLE project</title><link>https://devzone.nordicsemi.com/thread/232375?ContentTypeID=1</link><pubDate>Mon, 03 Feb 2020 14:38:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5bcbeafb-e294-4303-91d8-cbc900700d32</guid><dc:creator>maria vincent</dc:creator><description>&lt;p&gt;ok thanks.&lt;/p&gt;
&lt;p&gt;so i tried trying the same with nrf52840 dongle as scanner or the central device but each time i program the dongle it appears in the log as&amp;quot; target device closed&amp;#39; which makes it difficult to check the printed rssi value since the dongle is no longer connected even when it actually is connected&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE project</title><link>https://devzone.nordicsemi.com/thread/232312?ContentTypeID=1</link><pubDate>Mon, 03 Feb 2020 12:32:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b5053885-3f1c-45d9-831b-a354209954ce</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;You can check out:&lt;br /&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s110.api.v8.0.0/group___b_l_e___g_a_p___r_s_s_i___f_i_l_t___m_s_c.html"&gt;https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s110.api.v8.0.0/group___b_l_e___g_a_p___r_s_s_i___f_i_l_t___m_s_c.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Simply call&amp;nbsp;&lt;span&gt;sd_ble_gap_rssi_start() while in a connection, then you will get:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static void on_ble_evt(ble_evt_t * p_ble_evt)
{
...

    switch (p_ble_evt-&amp;gt;header.evt_id)
    {
..
        case BLE_GAP_EVT_RSSI_CHANGED:
            rssi_value = p_ble_evt-&amp;gt;evt.gap_evt.params.rssi_changed.rssi;
            break;
..
    }
}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>