<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[RemoteXY community — [solved] Working mode: random/app]]></title>
		<link>https://forum.remotexy.com/viewtopic.php?id=981</link>
		<atom:link href="https://forum.remotexy.com/extern.php?action=feed&amp;tid=981&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in [solved] Working mode: random/app.]]></description>
		<lastBuildDate>Tue, 21 Apr 2020 16:25:22 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: [solved] Working mode: random/app]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=2887#p2887</link>
			<description><![CDATA[<p>SOLVED!!! i&#039;ve increased the size of the char from 4 to 7 and i get values!!!</p>]]></description>
			<author><![CDATA[null@example.com (salsedine)]]></author>
			<pubDate>Tue, 21 Apr 2020 16:25:22 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=2887#p2887</guid>
		</item>
		<item>
			<title><![CDATA[Re: [solved] Working mode: random/app]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=2885#p2885</link>
			<description><![CDATA[<p>Show FULL code</p><p>And what is the value of rpm whe the problem is happening ?</p><p>itoa works, I use it every days</p>]]></description>
			<author><![CDATA[null@example.com (Guillaume)]]></author>
			<pubDate>Tue, 21 Apr 2020 13:09:36 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=2885#p2885</guid>
		</item>
		<item>
			<title><![CDATA[Re: [solved] Working mode: random/app]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=2883#p2883</link>
			<description><![CDATA[<p>I think but i could be wrong that the issue is related the way which your app handles interrupts. It isn&#039;t able to work with them,<br />only rounds of engine uses interrupts and so do not work.</p>]]></description>
			<author><![CDATA[null@example.com (salsedine)]]></author>
			<pubDate>Tue, 21 Apr 2020 08:29:13 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=2883#p2883</guid>
		</item>
		<item>
			<title><![CDATA[Re: [solved] Working mode: random/app]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=2881#p2881</link>
			<description><![CDATA[<p>Five for both char variables.</p>]]></description>
			<author><![CDATA[null@example.com (salsedine)]]></author>
			<pubDate>Tue, 21 Apr 2020 05:36:36 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=2881#p2881</guid>
		</item>
		<item>
			<title><![CDATA[Re: [solved] Working mode: random/app]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=2879#p2879</link>
			<description><![CDATA[<p>What the length of RemoteXY.giri ?</p>]]></description>
			<author><![CDATA[null@example.com (remotexy)]]></author>
			<pubDate>Tue, 21 Apr 2020 04:26:58 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=2879#p2879</guid>
		</item>
		<item>
			<title><![CDATA[Re: [solved] Working mode: random/app]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=2875#p2875</link>
			<description><![CDATA[<p>I&#039;ve just focused my attention on that flag, thanks.</p><p>Some debug:</p><p>1) when i connect, the flag goes 1 and i control the RGB led;</p><p>2)On the app i put 2 char boxes [5], one for the temperature (i read the value no problem) and the other to show RPM of the engine. This second box shows always a <span class="bbu">flashing &quot;00&quot;</span> and when it starts to generate numbers (rounds of engine) suddenly <span class="bbu">the connect_flag goes to 0</span>( i need to reenter in the app).</p><p>I used your guide to convert from int to char with sprintf, itoa doesn&#039;t work.&nbsp; I see right values in my serial monitor, but not in the app (no RPM, yes temperature).</p><br /><p>This is my code, hope it helps:</p><div class="codebox"><pre><code>if (currentmillis - lastmillis &lt;= interval){ 
 detachInterrupt(IR);
 rpm = half_revolutions * ((60000/(currentmillis - lastmillis)));
 //Serial.print(rpm); 
 //Serial.print(&quot; RPM&quot;);
 //Serial.print(&quot;\n&quot;);
 half_revolutions = 0;
 lastmillis = currentmillis;
 attachInterrupt(IR, rpm_fan, FALLING);
  }
sprintf (RemoteXY.giri, &quot;%d&quot;, rpm);

ICACHE_RAM_ATTR void rpm_fan(){
  half_revolutions++;
 }</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (salsedine)]]></author>
			<pubDate>Mon, 20 Apr 2020 17:52:20 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=2875#p2875</guid>
		</item>
		<item>
			<title><![CDATA[Re: [solved] Working mode: random/app]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=2864#p2864</link>
			<description><![CDATA[<div class="codebox"><pre><code>if (RemoteXY.connect_flag != 0) {
  // connection established
}
else {
  // connection off
}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (remotexy)]]></author>
			<pubDate>Mon, 20 Apr 2020 03:52:28 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=2864#p2864</guid>
		</item>
		<item>
			<title><![CDATA[[solved] Working mode: random/app]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=2858#p2858</link>
			<description><![CDATA[<p>I&#039;m working with a nodemcu v3 for a project to use at school during open events. My project is done with a RGB led, a Dallas temperature gauge, a DC engine (PWM)+photo resistor+laser beam [i read spins], 16x2 LCD. <br />So the led lights randomly, the engine runs randomly too and on the display it shows the temperature and rounds per minute. This happens when &quot;NO CLIENT&quot; is connected to the nodemcu,<br />While it someone is connected to nodemcu, it will being drived by the app.<br />So i don&#039;t know which syntax to use for my &quot;if&quot; cicle:</p><br /><div class="codebox"><pre><code>if (??????????????????????)
  {
  RemoteXY.rgb_1_r=random(0,255);
  RemoteXY.rgb_1_g=random(0,255);
  RemoteXY.rgb_1_b=random(0,255);
  RemoteXY.slider=random(0,100);
  }</code></pre></div><p>I tried: </p><ul><li><p>WiFi.status() != WL_CONNECTED</p></li><li><p>!client.connected()</p></li><li><p>WiFi.waitForConnectResult() != WL_CONNECTED</p></li><li><p>WiFi.localIP().toString() == &quot;0.0.0.0&quot;</p></li></ul><p>Which is the compatible function to use with the RemoteXY library??? I tried calling the WiFi.begin() function too.<br />Thanks</p>]]></description>
			<author><![CDATA[null@example.com (salsedine)]]></author>
			<pubDate>Sun, 19 Apr 2020 13:18:12 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=2858#p2858</guid>
		</item>
	</channel>
</rss>
