<?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>RSSI value</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/35476/rssi-value</link><description>Hi, 
 I&amp;#39;m using the light_switch example to implement mesh. How do I display the RSSI value of server on rtt viewer when the client receives the server status? 
 Regards, 
 Sunil</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 02 Jul 2018 07:50:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/35476/rssi-value" /><item><title>RE: RSSI value</title><link>https://devzone.nordicsemi.com/thread/138437?ContentTypeID=1</link><pubDate>Mon, 02 Jul 2018 07:50:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd9b1dca-c417-4e83-98ad-5f060e41da75</guid><dc:creator>zhengrui</dc:creator><description>&lt;p&gt;Hi Kristin,thanks for your advice and it works,but how to receive the servers&amp;#39; health status via client instead of provisioner ,I want to get the node address and RSSI when the servers send their health status instead the moment that I send a comment to the server? I asked the others but they give me the guide to you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RSSI value</title><link>https://devzone.nordicsemi.com/thread/136609?ContentTypeID=1</link><pubDate>Mon, 18 Jun 2018 16:36:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e3d8cc22-f1dd-42d4-b801-6d9372b87ad7</guid><dc:creator>Sunil519</dc:creator><description>&lt;p&gt;It worked. Thanks for the solution.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RSSI value</title><link>https://devzone.nordicsemi.com/thread/136551?ContentTypeID=1</link><pubDate>Mon, 18 Jun 2018 12:39:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:977c38ec-0192-47c9-b7fa-e8e73ab883c7</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;In light switch client example, that struct comes with &lt;strong&gt;access_message_rx_t&lt;/strong&gt; in f.ex &lt;strong&gt;handle_status_cb() &lt;/strong&gt;as p_message contains the RSSI. Printig it can be done the following way:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;simple_on_off_client.c

static void handle_status_cb(access_model_handle_t handle, const access_message_rx_t * p_message, void * p_args)
{
    simple_on_off_client_t * p_client = p_args;
    NRF_MESH_ASSERT(p_client-&amp;gt;status_cb != NULL);

    if (!is_valid_source(p_client, p_message))
    {
        return;
    }

    // Print RSSI of server
     __LOG(LOG_SRC_APP,
                  LOG_LEVEL_INFO,
                  &amp;quot;RSSI: %d\n&amp;quot;,
                    ((p_message-&amp;gt;meta_data.p_core_metadata-&amp;gt;source == NRF_MESH_RX_SOURCE_SCANNER)
                      ?p_message-&amp;gt;meta_data.p_core_metadata-&amp;gt;params.scanner.rssi
                       : 0));

    simple_on_off_msg_status_t * p_status =
        (simple_on_off_msg_status_t *) p_message-&amp;gt;p_data;
    simple_on_off_status_t on_off_status = (p_status-&amp;gt;present_on_off ?
                                              SIMPLE_ON_OFF_STATUS_ON : SIMPLE_ON_OFF_STATUS_OFF);
    p_client-&amp;gt;status_cb(p_client, on_off_status, p_message-&amp;gt;meta_data.src.value);
}
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The provisioner light switch example prints the RSSI in app_health_event_cb().&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>