<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[RemoteXY community — External key with mobile key]]></title>
	<link rel="self" href="https://forum.remotexy.com/extern.php?action=feed&amp;tid=701&amp;type=atom" />
	<updated>2019-07-21T20:21:55Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.remotexy.com/viewtopic.php?id=701</id>
		<entry>
			<title type="html"><![CDATA[Re: External key with mobile key]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=2299#p2299" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Daba]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=630</uri>
			</author>
			<updated>2019-07-21T20:21:55Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=2299#p2299</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[External key with mobile key]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=2064#p2064" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[3dnour]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=869</uri>
			</author>
			<updated>2019-04-11T08:51:40Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=2064#p2064</id>
		</entry>
</feed>
