<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[RemoteXY community — Integrate timer feature into RemoteXY App]]></title>
	<link rel="self" href="https://forum.remotexy.com/extern.php?action=feed&amp;tid=1499&amp;type=atom" />
	<updated>2022-07-23T01:49:01Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.remotexy.com/viewtopic.php?id=1499</id>
		<entry>
			<title type="html"><![CDATA[Re: Integrate timer feature into RemoteXY App]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=4744#p4744" />
			<content type="html"><![CDATA[<p>You didn&#039;t mention On delay or Off delay. Please describe a little bit brief<br />and Ex. use simply millis() function and the important is using millis() function after approximately 50 days the timer wraps round to zero.<br /></p><div class="codebox"><pre><code>#define EXE_INTERVAL 1000  //delay time in milli seconds(1000 = 1seconds)

unsigned long lastExecutedMillis = 0; // vairable to save the last executed time

void setup() {
  /*******************
   *  your setup code
   *******************/
}

void loop() {
  unsigned long currentMillis = millis();

  if (currentMillis - lastExecutedMillis &gt;= EXE_INTERVAL) {
    lastExecutedMillis = currentMillis; // save the last executed time

    /******************
     * your code block
     ******************/
  }
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Ghostwarrior]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=2183</uri>
			</author>
			<updated>2022-07-23T01:49:01Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=4744#p4744</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Integrate timer feature into RemoteXY App]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=4659#p4659" />
			<content type="html"><![CDATA[<p>I am presently working on a project that requires a timer.<br />I would like to set time for the appliances on my home automation system to come up.<br />I will appreciate if you can make this update as soon as possible.<br />Thank you</p>]]></content>
			<author>
				<name><![CDATA[samjubril]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=2136</uri>
			</author>
			<updated>2022-05-23T13:11:20Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=4659#p4659</id>
		</entry>
</feed>
