<?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>Sending Temperature Values from Server to Client using sht85</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/82609/sending-temperature-values-from-server-to-client-using-sht85</link><description>Hi there! 
 I have recently managed to combine sht85 with light lightness server code. J-link is able to produce 2 values (Temperature and Humidity) whenever I key in the number 3 . 
 I want to be able to send these data to the client side. I have taken</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 07 Jan 2022 09:45:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/82609/sending-temperature-values-from-server-to-client-using-sht85" /><item><title>RE: Sending Temperature Values from Server to Client using sht85</title><link>https://devzone.nordicsemi.com/thread/346642?ContentTypeID=1</link><pubDate>Fri, 07 Jan 2022 09:45:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:851254cf-80f2-41d6-8333-5d5d286f5792</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Have you had any progress with this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending Temperature Values from Server to Client using sht85</title><link>https://devzone.nordicsemi.com/thread/344714?ContentTypeID=1</link><pubDate>Wed, 22 Dec 2021 04:01:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:945a5307-909b-4665-9a04-1dbfc30a3809</guid><dc:creator>kyle goldsteins</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Any idea on how to solve this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending Temperature Values from Server to Client using sht85</title><link>https://devzone.nordicsemi.com/thread/344052?ContentTypeID=1</link><pubDate>Fri, 17 Dec 2021 06:40:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c7be825-5815-4912-b073-232da9897208</guid><dc:creator>kyle goldsteins</dc:creator><description>&lt;p&gt;I just added these lines of code under if(button_number ==3)&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;uint32_t status2 = temp_status_publish(&amp;amp;m_light_lightness_server_0);
              if ( status2 != NRF_SUCCESS)
           {
            __LOG(LOG_SRC_APP, LOG_LEVEL_WARN, &amp;quot;Unable to publish status message, status: %d\n&amp;quot;, status2);
           }&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;In the J-link it does not print any error, hence, I am assuming it is publishing correctly.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending Temperature Values from Server to Client using sht85</title><link>https://devzone.nordicsemi.com/thread/343856?ContentTypeID=1</link><pubDate>Thu, 16 Dec 2021 11:03:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f03a05aa-0ae7-42c9-be00-4f533cc9a423</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;I suspect that you are not sending the values correctly. Looking at the &amp;quot;if(button_number == 3)&amp;quot; in the code above it looks like you aren&amp;#39;t publishing anything to the client when button 3 is pressed. It only reads out the temperature and humidity.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending Temperature Values from Server to Client using sht85</title><link>https://devzone.nordicsemi.com/thread/343534?ContentTypeID=1</link><pubDate>Wed, 15 Dec 2021 06:20:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c363a50f-1e03-48de-b7e0-9f308d5c64e4</guid><dc:creator>kyle goldsteins</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;00&amp;gt; &amp;lt;t:     402591&amp;gt;, main.c,  422, Button 3 pressed
00&amp;gt; &amp;lt;t:     402593&amp;gt;, main.c,  461, 
00&amp;gt;     --------------------------------------------------------------
00&amp;gt;      RTT 1) Decrease LED state, until min value is reached.
00&amp;gt;      RTT 2) Increase LED state, until max value is reached.
00&amp;gt;      RTT 4) Clear all the states to reset the node.
00&amp;gt;     --------------------------------------------------------------
00&amp;gt; &amp;lt;t:     403132&amp;gt;, main.c,  492, Temperature: 26
00&amp;gt; &amp;lt;t:     403134&amp;gt;, main.c,  493, Humidity: 58
00&amp;gt; &amp;lt;t:     403136&amp;gt;, main.c,  511, 
00&amp;gt;     --------------------------------------------------------------
00&amp;gt;      RTT 1) Decrease LED state, until min value is reached.
00&amp;gt;      RTT 2) Increase LED state, until max value is reached.
00&amp;gt;      RTT 4) Clear all the states to reset the node.
00&amp;gt;     --------------------------------------------------------------&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;This is the log on the server side. Whenever I enter &amp;#39;3&amp;#39;, an update of temperature and humidity will be shown. I am not sure if its being sent to client side.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending Temperature Values from Server to Client using sht85</title><link>https://devzone.nordicsemi.com/thread/343397?ContentTypeID=1</link><pubDate>Tue, 14 Dec 2021 12:35:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c5e3c5c8-36d8-4317-9ff3-51e86eb7ca05</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Can you check on the server side what temperature value that are being sent? Is it sent at all?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending Temperature Values from Server to Client using sht85</title><link>https://devzone.nordicsemi.com/thread/343301?ContentTypeID=1</link><pubDate>Tue, 14 Dec 2021 06:05:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:466b646e-d88e-4f20-87a8-eda47844933a</guid><dc:creator>kyle goldsteins</dc:creator><description>&lt;p&gt;Hi, thanks for the reply&lt;/p&gt;
&lt;p&gt;No, I am not able to receive the data on client side. The temperature reading shows 0&lt;/p&gt;
&lt;p&gt;I am using SDK 17.0.2, mesh v4.20&lt;/p&gt;
&lt;p&gt;Also, this is the log that appears in the J-link&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;00&amp;gt; &amp;lt;t:     583150&amp;gt;, main-poll-4bytes-8lights-level.c,  482, Sending msg: Ack Lightness Set: Lightness: 65500 Tid: 2 Trans time: 0 ms Delay: 0 ms
00&amp;gt; &amp;lt;t:     585328&amp;gt;, main-poll-4bytes-8lights-level.c,  201, Acknowledged transfer success.
00&amp;gt; &amp;lt;t:     585331&amp;gt;, main-poll-4bytes-8lights-level.c,  231, Lightness client: 0x0231, Present lightness: 22, Temperature: 0&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Hence, in the if/else statement, the log is showing the else portion as temperature is added to that log as well. The problem is that the client side isn&amp;#39;t receiving any data about temperature from the server.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending Temperature Values from Server to Client using sht85</title><link>https://devzone.nordicsemi.com/thread/343207?ContentTypeID=1</link><pubDate>Mon, 13 Dec 2021 14:04:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b691cfa-f28c-4139-bb0d-f30a7f1e8eb0</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Are you receiving any data on client side when you try to send the temperature?&lt;/p&gt;
&lt;p&gt;Also which SDK version are you using?&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;if (p_in-&amp;gt;remaining_time_ms &amp;gt; 0)
    {
        __LOG(LOG_SRC_APP, LOG_LEVEL_INFO, &amp;quot;Lightness client: 0x%04x, Present Lightness: %d, Target Lightness: %d, Remaining Time: %d ms\n&amp;quot;,
              p_meta-&amp;gt;src.value, p_in-&amp;gt;present_lightness, p_in-&amp;gt;target_lightness, p_in-&amp;gt;remaining_time_ms);
    }
    else
    {
        __LOG(LOG_SRC_APP, LOG_LEVEL_INFO, &amp;quot;Lightness client: 0x%04x, Present lightness: %d, Temperature: %d\n&amp;quot;,
              p_meta-&amp;gt;src.value, p_in-&amp;gt;present_lightness, p_in-&amp;gt;temp_read); //just added temp_read to read temperature values from server
    }&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Also this code snippet on client, won&amp;#39;t this if statement prevent the client from ever reading the temp value if&amp;nbsp;the if statement is true? Can you check if this is the case?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>