<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[RemoteXY community — Lost connection]]></title>
	<link rel="self" href="https://forum.remotexy.com/extern.php?action=feed&amp;tid=318&amp;type=atom" />
	<updated>2018-03-13T19:41:51Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.remotexy.com/viewtopic.php?id=318</id>
		<entry>
			<title type="html"><![CDATA[Re: Lost connection]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=1392#p1392" />
			<content type="html"><![CDATA[<p>Suggested method are not working!!!</p><p>connect_flag always&nbsp; has zero value and can not be used at all. </p><p>It could be even removed from the structure since it is defined only there.&nbsp; It is dangerous to use use RemoteXY for anything else than toys. Just imagine electric motor remained engaged &quot;forever&quot; even if command link from the smartphone are broken.</p>]]></content>
			<author>
				<name><![CDATA[hefest]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=576</uri>
			</author>
			<updated>2018-03-13T19:41:51Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=1392#p1392</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Lost connection]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=1224#p1224" />
			<content type="html"><![CDATA[<p>Welcome,</p><p>Something like this:<br /></p><div class="codebox"><pre><code>void loop()
{
  RemoteXY_Handler ();

  static bool wasConnected = false;
  if ( wasConnected == false )
  {
    if ( RemoteXY.connect_flag == 1 )
    {
      wasConnected = true;
      Serial.println( &quot;Connected...&quot; );
    }
  }
  else if ( RemoteXY.connect_flag == 0 )
  {
    wasConnected = false;
    Serial.println( &quot;Connection lost, rebooting...&quot; );
    rebootArduino();
  }
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Guillaume]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=23</uri>
			</author>
			<updated>2018-01-07T04:33:32Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=1224#p1224</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Lost connection]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=1220#p1220" />
			<content type="html"><![CDATA[<p>same issue of lost connection. Not sure how to use connect flag either.</p>]]></content>
			<author>
				<name><![CDATA[richmcewan]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=507</uri>
			</author>
			<updated>2018-01-04T00:53:15Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=1220#p1220</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Lost connection]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=1124#p1124" />
			<content type="html"><![CDATA[<p>Thanks</p><p>I am a beginner and I don&#039;t understand how to use &#039;connect_flag&#039;.<br />Can you please explain me in more detail.</p>]]></content>
			<author>
				<name><![CDATA[SilvioC]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=480</uri>
			</author>
			<updated>2017-12-04T13:00:06Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=1124#p1124</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Lost connection]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=1121#p1121" />
			<content type="html"><![CDATA[<p>Hello,<br />try to use the variable &#039;connect_flag&#039; in RemoteXY structure.</p>]]></content>
			<author>
				<name><![CDATA[remotexy]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=2</uri>
			</author>
			<updated>2017-12-04T05:37:37Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=1121#p1121</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Lost connection]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=1118#p1118" />
			<content type="html"><![CDATA[<p>Hi<br />Can you help me to solve a problem when the connection is lost.</p><p>I need a code to reboot Arduino when the connection between HC-05(06) Bluetooth module and android is lost.</p>]]></content>
			<author>
				<name><![CDATA[SilvioC]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=480</uri>
			</author>
			<updated>2017-12-03T18:14:56Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=1118#p1118</id>
		</entry>
</feed>
