<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[RemoteXY community — External key with mobile key]]></title>
		<link>https://forum.remotexy.com/viewtopic.php?id=701</link>
		<atom:link href="https://forum.remotexy.com/extern.php?action=feed&amp;tid=701&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in External key with mobile key.]]></description>
		<lastBuildDate>Sun, 21 Jul 2019 20:21:55 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: External key with mobile key]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=2299#p2299</link>
			<description><![CDATA[<div class="quotebox"><cite>3dnour wrote:</cite><blockquote><p><strong>welcome everybody <img src="https://forum.remotexy.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></strong></p><p> <strong> I&#039;m working on&nbsp; &nbsp; &nbsp;NodeMCU__ESP8266&nbsp; V3</strong></p><p><strong>How can I add an external key to the light with the application RemoteXY<br />On the mobile so that I can turn on and turn off the light by mobile<br />  At the same time I want to turn on and off the light through an external key<br />  And know the status of the key in mobile ؟</strong></p><br /><p><strong>I wish you all the health........ <img src="https://forum.remotexy.com/img/smilies/smile.png" width="15" height="15" alt="smile" /><br />Thanks</strong></p></blockquote></div><p>An old post, yes, but you did not get an answer.</p><p>I think by now you have realised that the &quot;controls&quot;, e.g. switches, sliders, numerical input etc. cannot be &quot;updated&quot; by the MCU sketch if they are changed elsewhere. </p><p>This is a shortcoming of the interface that has been well documented in these forums.</p><p>I don&#039;t know if you got your issue solved, but one way would be to make the RemoteXY app with a push-button to &quot;toggle&quot; the current state of the light, easy enough to do, and to have an LED showing the current state of the light output.&nbsp; &nbsp;That would enable the mobile to always display the &quot;status of the key&quot;.</p><p>And another hint : RemoteXY only writes the push-button input variable back to &quot;0&quot; after the button is released. Your MCU will see this button ON many, many times, when you actually only want to see it once.&nbsp; Simply write it back to &quot;0&quot; when you see it at a &quot;1&quot;, effectively making it a &quot;one-shot&quot;. it doesn&#039;t matter that the RemoteXY app will write it back to &quot;0&quot; later (even though it already is a &quot;0&quot;, you only ever want to see it come on.</p><div class="codebox"><pre><code>if (RemoteXY.button) {
   RemoteXY.button = 0;       // turn the button off
   light = !light;           // toggle the light status
}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Daba)]]></author>
			<pubDate>Sun, 21 Jul 2019 20:21:55 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=2299#p2299</guid>
		</item>
		<item>
			<title><![CDATA[External key with mobile key]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=2064#p2064</link>
			<description><![CDATA[<p><strong>welcome everybody <img src="https://forum.remotexy.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></strong></p><p> <strong> I&#039;m working on&nbsp; &nbsp; &nbsp;NodeMCU__ESP8266&nbsp; V3</strong></p><p><strong>How can I add an external key to the light with the application RemoteXY<br />On the mobile so that I can turn on and turn off the light by mobile<br />  At the same time I want to turn on and off the light through an external key<br />  And know the status of the key in mobile ؟</strong></p><br /><p><strong>I wish you all the health........ <img src="https://forum.remotexy.com/img/smilies/smile.png" width="15" height="15" alt="smile" /><br />Thanks</strong></p>]]></description>
			<author><![CDATA[null@example.com (3dnour)]]></author>
			<pubDate>Thu, 11 Apr 2019 08:51:40 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=2064#p2064</guid>
		</item>
	</channel>
</rss>
