<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[RemoteXY community — Synchronize Physical Switch(Latched type) and RemoteXY widget Switch]]></title>
	<link rel="self" href="https://forum.remotexy.com/extern.php?action=feed&amp;tid=1521&amp;type=atom" />
	<updated>2022-07-23T01:35:46Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.remotexy.com/viewtopic.php?id=1521</id>
		<entry>
			<title type="html"><![CDATA[Synchronize Physical Switch(Latched type) and RemoteXY widget Switch]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=4743#p4743" />
			<content type="html"><![CDATA[<p>Hi I have a project with a relay controlling from both Physical switch(Latched type) as well as Remotexy app widget switch (i.e when wifi not available or internet fail) the problem is&nbsp; both are same status when I try to operate physical switch and app widget switch also on but unable to control from both switch independently(Physical switch &amp; Widget switch) on/off with synchronize state. my Code is below, Bypass is Physical switch and BypSwitch_1 is widget switch, Adavance thanks for your help.... </p><div class="codebox"><pre><code>if (digitalRead(Bypass) == LOW || RemoteXY.BypSwitch_1==1)
  {
    digitalWrite(PIN_BYPSWITCH_1,HIGH);
    RemoteXY.BypLed = 1;
    RemoteXY.BypSwitch_1=1; 
  }
  if(digitalRead(Bypass) == HIGH || RemoteXY.BypSwitch_1==0)
  {
    
    digitalWrite(PIN_BYPSWITCH_1,LOW);
    RemoteXY.BypLed = 0;
    RemoteXY.BypSwitch_1=0;
  }
digitalWrite(PIN_BYPSWITCH_1, (RemoteXY.BypSwitch_1==0)?LOW:HIGH); </code></pre></div>]]></content>
			<author>
				<name><![CDATA[Ghostwarrior]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=2183</uri>
			</author>
			<updated>2022-07-23T01:35:46Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=4743#p4743</id>
		</entry>
</feed>
