<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[RemoteXY community — cloud connection disconnecting]]></title>
	<link rel="self" href="https://forum.remotexy.com/extern.php?action=feed&amp;tid=970&amp;type=atom" />
	<updated>2020-04-15T05:54:13Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.remotexy.com/viewtopic.php?id=970</id>
		<entry>
			<title type="html"><![CDATA[Re: cloud connection disconnecting]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=2816#p2816" />
			<content type="html"><![CDATA[<p>i only past part of the code,<br />i use wile to insure that i will stay in the code until the user input &quot;exit&quot; (this is working),<br />i checked and saw that in the last line &quot; float k1 = atof (RemoteXY.XY_input);&quot;<br />the software disconnected, once again is i use the same command in the main loop it work just fine.</p>]]></content>
			<author>
				<name><![CDATA[moranbel123]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=1312</uri>
			</author>
			<updated>2020-04-15T05:54:13Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=2816#p2816</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: cloud connection disconnecting]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=2814#p2814" />
			<content type="html"><![CDATA[<p>il et impossible de me connecter avec tokens cloud</p>]]></content>
			<author>
				<name><![CDATA[abdou]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=1313</uri>
			</author>
			<updated>2020-04-14T20:19:52Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=2814#p2814</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: cloud connection disconnecting]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=2813#p2813" />
			<content type="html"><![CDATA[<p>IMPOSSIBLE DE CONNECTER&nbsp; AU CLOUD ET VOICI MON CODE<br />/*<br />&nbsp; &nbsp;-- progecteur --<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;This source code of graphical user interface <br />&nbsp; &nbsp;has been generated automatically by RemoteXY editor.<br />&nbsp; &nbsp;To compile this code using RemoteXY library 2.4.3 or later version <br />&nbsp; &nbsp;download by link <a target="_blank" href="http://remotexy.com/en/library/">http://remotexy.com/en/library/</a><br />&nbsp; &nbsp;To connect using RemoteXY mobile app by link <a target="_blank" href="http://remotexy.com/en/download/">http://remotexy.com/en/download/</a>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;- for ANDROID 4.5.1 or later version;<br />&nbsp; &nbsp; &nbsp;- for iOS 1.4.1 or later version;<br />&nbsp; &nbsp; <br />&nbsp; &nbsp;This source code is free software; you can redistribute it and/or<br />&nbsp; &nbsp;modify it under the terms of the GNU Lesser General Public<br />&nbsp; &nbsp;License as published by the Free Software Foundation; either<br />&nbsp; &nbsp;version 2.1 of the License, or (at your option) any later version.&nbsp; &nbsp; <br />*/</p><p>//////////////////////////////////////////////<br />//&nbsp; &nbsp; &nbsp; &nbsp; RemoteXY include library&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //<br />//////////////////////////////////////////////</p><p>// RemoteXY select connection mode and include library <br />#define REMOTEXY_MODE__ESP8266_HARDSERIAL_CLOUD</p><p>#include &lt;RemoteXY.h&gt;</p><p>// RemoteXY connection settings <br />#define REMOTEXY_SERIAL Serial<br />#define REMOTEXY_SERIAL_SPEED 115200<br />#define REMOTEXY_WIFI_SSID &quot;&quot;<br />#define REMOTEXY_WIFI_PASSWORD &quot;&quot;<br />#define REMOTEXY_CLOUD_SERVER &quot;cloud.remotexy.com&quot;<br />#define REMOTEXY_CLOUD_PORT 6376<br />#define REMOTEXY_CLOUD_TOKEN &quot;6602cbde8b07ca2f3316aa5ff4580fb9&quot;</p><br /><p>// RemoteXY configurate&nbsp; <br />#pragma pack(push, 1)<br />uint8_t RemoteXY_CONF[] =<br />&nbsp; { 255,2,0,0,0,30,0,10,13,1,<br />&nbsp; 2,0,22,14,22,11,2,26,31,31,<br />&nbsp; 79,78,0,79,70,70,0,1,0,27,<br />&nbsp; 72,12,12,2,31,88,0 };<br />&nbsp; <br />// this structure defines all the variables and events of your control interface <br />struct {</p><p>&nbsp; &nbsp; // input variables<br />&nbsp; uint8_t switch_1; // =1 if switch ON and =0 if OFF <br />&nbsp; uint8_t button_2; // =1 if button pressed, else =0 </p><p>&nbsp; &nbsp; // other variable<br />&nbsp; uint8_t connect_flag;&nbsp; // =1 if wire connected, else =0 </p><p>} RemoteXY;<br />#pragma pack(pop)</p><p>/////////////////////////////////////////////<br />//&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;END RemoteXY include&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //<br />/////////////////////////////////////////////</p><p>#define PIN_SWITCH_1 0<br />#define PIN_BUTTON_2 3</p><br /><p>void setup() <br />{<br />&nbsp; RemoteXY_Init (); <br />&nbsp; <br />&nbsp; pinMode (PIN_SWITCH_1, OUTPUT);<br />&nbsp; pinMode (PIN_BUTTON_2, OUTPUT);<br />&nbsp; <br />&nbsp; // TODO you setup code<br />&nbsp; <br />}</p><p>void loop() <br />{ <br />&nbsp; RemoteXY_Handler ();<br />&nbsp; <br />&nbsp; digitalWrite(PIN_SWITCH_1, (RemoteXY.switch_1==0)?LOW:HIGH);<br />&nbsp; digitalWrite(PIN_BUTTON_2, (RemoteXY.button_2==0)?LOW:HIGH);<br />&nbsp; <br />&nbsp; // TODO you loop code<br />&nbsp; // use the RemoteXY structure for data transfer<br />&nbsp; // do not call delay() </p><br /><p>}</p>]]></content>
			<author>
				<name><![CDATA[abdou]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=1313</uri>
			</author>
			<updated>2020-04-14T20:00:34Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=2813#p2813</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: cloud connection disconnecting]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=2812#p2812" />
			<content type="html"><![CDATA[<p><a target="_blank" href="https://stackoverflow.com/help/minimal-reproducible-example">https://stackoverflow.com/help/minimal- … le-example</a></p><p>Why use a while loop ? Why create float k1 if you never use it ?</p>]]></content>
			<author>
				<name><![CDATA[Guillaume]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=23</uri>
			</author>
			<updated>2020-04-14T19:41:50Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=2812#p2812</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: cloud connection disconnecting]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=2811#p2811" />
			<content type="html"><![CDATA[<p>have a look in the last line:</p><p>void Calabrate(){<br />&nbsp; Serial.println(&quot;1:Place Probe into pH7 calibration fluid, open serial &quot;);<br />&nbsp; RemoteXY_Handler ();<br />&nbsp; while (strcmp (RemoteXY.XY_input, &quot;exit&quot;)!=0){<br />&nbsp; &nbsp; RemoteXY_Handler ();<br />&nbsp; &nbsp; PH_Anlog_Sum=0;<br />&nbsp; <br />&nbsp; <br />&nbsp; &nbsp; PH_Anlog_Avg=PH_Anlog_Sum/10;<br />&nbsp; &nbsp; phValue=PH_Anlog_Avg*K*5/1024;<br />&nbsp; &nbsp; Serial.println(&quot;&nbsp; &nbsp; &quot;);<br />&nbsp; &nbsp; Serial.print(&quot;PH_Avg (cal mode):&quot;);<br />&nbsp; &nbsp; Serial.println(phValue);<br />&nbsp; &nbsp; dtostrf (phValue,4 ,2, RemoteXY.ph_val);<br />&nbsp; &nbsp; Konstant=((7*1024)/(PH_Anlog_Avg*5));<br />&nbsp; &nbsp; Serial.print(&quot;To achive pH 7, K Konstant needs to be : &quot;);<br />&nbsp; &nbsp; Serial.println (Konstant);<br />&nbsp; &nbsp; dtostrf (Konstant,4 ,2, RemoteXY.PH_correction);<br />&nbsp; &nbsp; float k1 = atof (RemoteXY.XY_input);<br />&nbsp; }<br />}</p>]]></content>
			<author>
				<name><![CDATA[moranbel123]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=1312</uri>
			</author>
			<updated>2020-04-14T19:30:37Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=2811#p2811</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: cloud connection disconnecting]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=2810#p2810" />
			<content type="html"><![CDATA[<p>Welcome,</p><p>Show your code, ideally a small code which demonstrates the problem and nothing else.</p>]]></content>
			<author>
				<name><![CDATA[Guillaume]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=23</uri>
			</author>
			<updated>2020-04-14T19:10:51Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=2810#p2810</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[cloud connection disconnecting]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=2809#p2809" />
			<content type="html"><![CDATA[<p>Hello,<br />when i use the following command:<br /> <strong>float k1 = atof (RemoteXY.XY_input);</strong><br />at the main loop it working just fine, and when i use it at another function (not the main loop),<br />i losted connection in 15 seconds,<br />please advice me,<br />Thanks,<br />Moran</p>]]></content>
			<author>
				<name><![CDATA[moranbel123]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=1312</uri>
			</author>
			<updated>2020-04-14T17:43:13Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=2809#p2809</id>
		</entry>
</feed>
