<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[RemoteXY community — Problem with "The device is not connected to the server"]]></title>
	<link rel="self" href="https://forum.remotexy.com/extern.php?action=feed&amp;tid=659&amp;type=atom" />
	<updated>2019-01-22T04:17:21Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.remotexy.com/viewtopic.php?id=659</id>
		<entry>
			<title type="html"><![CDATA[Re: Problem with "The device is not connected to the server"]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=1991#p1991" />
			<content type="html"><![CDATA[<p>Try without the delays. If that works, then you will need to find another way of doing your &quot;pulse&quot;, such as a finite state machine, or like the example Blink Without Delay, or using a timer library.</p>]]></content>
			<author>
				<name><![CDATA[Guillaume]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=23</uri>
			</author>
			<updated>2019-01-22T04:17:21Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=1991#p1991</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Problem with "The device is not connected to the server"]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=1990#p1990" />
			<content type="html"><![CDATA[<p>heloo !!!</p><p>this is the code :</p><div class="codebox"><pre><code>// RemoteXY select connection mode and include library  
#define REMOTEXY_MODE__ETHERNET_LIB_CLOUD
#include &lt;Ethernet.h&gt; 
#include &lt;SPI.h&gt; 
#include &lt;RemoteXY.h&gt; 
#include &lt;math.h&gt;

// RemoteXY connection settings  
#define REMOTEXY_ETHERNET_MAC &quot;DE:AD:BE:EF:EF:ED&quot; 
#define REMOTEXY_CLOUD_SERVER &quot;cloud.remotexy.com&quot; 
#define REMOTEXY_CLOUD_PORT xxxx 
#define REMOTEXY_CLOUD_TOKEN &quot;xxxx&quot; 
#define REMOTEXY_ACCESS_PASSWORD &quot;xxxx&quot; 


// RemoteXY configurate   
#pragma pack(push, 1) 
uint8_t RemoteXY_CONF[] = 
  { 255,2,0,24,0,205,0,8,148,1,
  67,5,21,14,20,5,1,29,6,67,
  5,21,29,20,5,203,29,6,2,0,
  9,80,22,11,2,26,1,24,79,78,
  0,79,70,70,0,129,0,5,6,53,
  6,36,84,101,109,112,101,114,97,116,
  117,114,97,32,116,117,114,32,194,176,
  67,0,129,0,2,21,59,6,204,84,
  101,109,112,101,114,97,116,117,114,97,
  32,114,101,116,117,114,32,194,176,67,
  0,129,0,2,71,36,6,17,66,101,
  99,32,109,97,103,97,122,105,101,0,
  129,0,1,36,60,6,94,84,46,32,
  99,97,109,101,114,97,32,99,101,110,
  116,114,97,108,97,32,194,176,67,0,
  67,5,21,45,20,5,94,27,6,67,
  5,21,61,20,5,2,26,6,129,0,
  12,52,38,6,17,84,46,32,109,97,
  103,97,122,105,101,32,194,176,67,0,
  1,2,46,79,12,12,2,35,120,0,
  129,0,46,71,12,6,17,84,101,115,
  116,0 }; 
   
// this structure defines all the variables of your control interface  
struct { 

    // input variable
  uint8_t bec; // =1 if switch ON and =0 if OFF 
  uint8_t test; // =1 if button pressed, else =0 

    // output variable
  char t_tur[6];  // string UTF8 end zero 
  char t_retur[6];  // string UTF8 end zero 
  char t_cam[6];  // string UTF8 end zero 
  char t_mag[6];  // string UTF8 end zero 

    // other variable
  uint8_t connect_flag;  // =1 if wire connected, else =0 

} RemoteXY; 
#pragma pack(pop) 
#define PIN_BEC 5
#define pin_rel 6
int sensorPin1 = A0;
int sensorPin2 = A1;
int sensorPin3 = A2;
int sensorPin4 = A3;
double Thermistor(int RawADC)
      {double Temp;
              Temp = log(10000.0*((1024.0/RawADC-1))); 
              Temp = 1 / (0.001129148 + (0.000234125 + (0.0000000876741 * Temp * Temp ))* Temp );
              Temp = Temp - 273.15;            // Convert Kelvin to Celcius
            //Temp = (Temp * 9.0)/ 5.0 + 32.0; // Convert Celcius to Fahrenheit
return Temp;
}

void setup()  
{ 
  RemoteXY_Init ();  
  pinMode (PIN_BEC, OUTPUT);
  pinMode (pin_rel,OUTPUT); 
  Serial.begin(9600);
} 

void loop()  
{  
  
 RemoteXY_Handler (); 
  int readVal1 = analogRead(sensorPin1); 
  int readVal2 = analogRead(sensorPin2); 
  int readVal3 = analogRead(sensorPin3);
  int readVal4 = analogRead(sensorPin4);
  double temp1 =  Thermistor(readVal1);
  double temp2 =  Thermistor(readVal2);
  double temp3 =  Thermistor(readVal3);
  double temp4 =  Thermistor(readVal4);
   dtostrf(temp1, 0, 1, RemoteXY.t_tur);
   dtostrf(temp2, 0, 1, RemoteXY.t_retur);
   dtostrf(temp3, 0, 1, RemoteXY.t_cam);
   dtostrf(temp4, 0, 1, RemoteXY.t_mag);
   Serial.println(temp1);
    if (temp1 &gt; 92 || temp2 &lt; 0)
  {
   digitalWrite (pin_rel  , LOW);
   delay (50);
   digitalWrite (pin_rel, HIGH);
   delay (4000);
  }

 digitalWrite(PIN_BEC, (RemoteXY.bec==0)?HIGH:LOW);
 digitalWrite(pin_rel, (RemoteXY.test==0)?HIGH:LOW);
   
  
   
delay (150); 

}</code></pre></div><br /><p>i forgotten to say that i supply the module with a 5V 1000mA on the usb type B...</p>]]></content>
			<author>
				<name><![CDATA[ionuttomescu092]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=814</uri>
			</author>
			<updated>2019-01-21T16:16:38Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=1990#p1990</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Problem with "The device is not connected to the server"]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=1987#p1987" />
			<content type="html"><![CDATA[<p>Welcome, show your code</p>]]></content>
			<author>
				<name><![CDATA[Guillaume]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=23</uri>
			</author>
			<updated>2019-01-21T00:47:09Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=1987#p1987</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Problem with "The device is not connected to the server"]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=1986#p1986" />
			<content type="html"><![CDATA[<p>Hello friends! I have a &quot;big&#039;&#039; problem with my arduino and remotexy.....I made a program who messure 4 temp. with ptc 10K&nbsp; and a philosofy when a temperature &gt; value , make me a contact on a relay....alll good...the arduino works good , it connected to the cloud server but after 2-3 hours of working ... it can&#039;t connect to the cloud server...i buy a pro licence from remotexy app... but i can&#039;t find the solution at this....please, if someone know what can i do..please ... help me..thx!</p>]]></content>
			<author>
				<name><![CDATA[ionuttomescu092]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=814</uri>
			</author>
			<updated>2019-01-20T20:13:57Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=1986#p1986</id>
		</entry>
</feed>
