<?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>Slow down LTE data</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/53997/slow-down-lte-data</link><description>I&amp;#39;m new to this world of IoT. I want to use my thingy91 to monitor temperature at a vacation home, but don&amp;#39;t need the data every few seconds. What is the best way to slow down the data throughput to something closer to once an hour? 
 I have friends familiar</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 04 Nov 2019 18:34:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/53997/slow-down-lte-data" /><item><title>RE: Slow down LTE data</title><link>https://devzone.nordicsemi.com/thread/218352?ContentTypeID=1</link><pubDate>Mon, 04 Nov 2019 18:34:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:019c226d-fc21-406d-af9b-746d9d4744a7</guid><dc:creator>Billy-IV</dc:creator><description>&lt;p&gt;I have not delved into thingy91 development.&amp;nbsp; So I can&amp;#39;t give you a code example.&amp;nbsp; However, I have produced a similar result on a different project.&amp;nbsp; the temperature reporting system should be starting a timer.&amp;nbsp; When the timer finishes it will trigger a callback.&amp;nbsp; Inside that callback is where the sending the temperature to wherever is being done.&amp;nbsp;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;To slow down the sample rate one would increase the length on that timer.&amp;nbsp; Depending on how often you want the temperature sent, the timer may not be able to be long enough.&amp;nbsp; In this case they should have a static variable that is tracking how many times the timer has gone off.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;e.g the timer max is 1 minute but you need 10.&amp;nbsp; You would set &amp;quot;X&amp;quot; to 10.&lt;br /&gt;&lt;br /&gt;Pseudocode:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;temperature_timer_callback (){
    static timer_count = 0;
    timer_count ++;
    
    if (timer_count &amp;gt; X){//X = the number of times the timer should trigger
        send_temperature;
        timer_count = 0; //reset count
    }
}&lt;/pre&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>