<?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>nRF52840 RSSI reading returns always the same three values</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/73357/nrf52840-rssi-reading-returns-always-the-same-three-values</link><description>Hi, 
 I am facing an issue with the RSSI value when my device is in connected mode. 
 First, in ble_evt_handler(), 
 in the BLE_GAP_EVT_CONNECTED case, I place the following 
 
 Second, in the ble_evt_handler() I added the BLE_GAP_EVT_RSSI_CHANGED case</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 30 Mar 2021 08:39:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/73357/nrf52840-rssi-reading-returns-always-the-same-three-values" /><item><title>RE: nRF52840 RSSI reading returns always the same three values</title><link>https://devzone.nordicsemi.com/thread/302504?ContentTypeID=1</link><pubDate>Tue, 30 Mar 2021 08:39:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5bd6d1f6-95d3-4812-b845-98600d0cac39</guid><dc:creator>masterLee</dc:creator><description>&lt;p&gt;Yes it works fine now.&amp;nbsp; I was reading the advertising RSSI value while I was in the connected state... &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f630.svg" title="Cold sweat"&gt;&amp;#x1f630;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Thank you for your support hmolesworth!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 RSSI reading returns always the same three values</title><link>https://devzone.nordicsemi.com/thread/302450?ContentTypeID=1</link><pubDate>Mon, 29 Mar 2021 17:19:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f216f91c-4527-4da1-9ac0-1ce5fbee18a6</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;Maybe try this in &lt;em&gt;ble_event_handler()&lt;/em&gt;:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;    ble_gap_evt_t const * p_gap_evt = &amp;amp;p_ble_evt-&amp;gt;evt.gap_evt;

        case BLE_GAP_EVT_RSSI_CHANGED:                 // 28 RSSI report
            int8_t  rssi_value   =  p_gap_evt-&amp;gt;params.rssi_changed.rssi;
            int16_t channel_rssi =  p_gap_evt-&amp;gt;params.rssi_changed.ch_index;
...&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>