<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[RemoteXY community — Synchronize Physical Switch(Latched type) and RemoteXY widget Switch]]></title>
		<link>https://forum.remotexy.com/viewtopic.php?id=1521</link>
		<atom:link href="https://forum.remotexy.com/extern.php?action=feed&amp;tid=1521&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Synchronize Physical Switch(Latched type) and RemoteXY widget Switch.]]></description>
		<lastBuildDate>Sat, 23 Jul 2022 01:35:46 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Synchronize Physical Switch(Latched type) and RemoteXY widget Switch]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=4743#p4743</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (Ghostwarrior)]]></author>
			<pubDate>Sat, 23 Jul 2022 01:35:46 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=4743#p4743</guid>
		</item>
	</channel>
</rss>
