1

Topic: Cloud server issue

Hello,
Does anybody have an idea what is wrong with  cloud.remotexy.com server ? ?
Is server (and whole project) totally dead or is it down temporarily ???
When I try connect to it from app, I constantly get error: "Cloud server does not reply Receive time out error"

2

Re: Cloud server issue

Hello,

Cloud working for me, show your code

3

Re: Cloud server issue

Hello,
Here is my code (I deleted wifi real ssid and password).
It is simple code with 4 buttons and leds.
I made it for testing cloud possibility.
My module and setup (with 9600 baudrate) and app itself works well when ESP8266 acting as a WiFi access point.

/*
   -- New project --
   
   This source code of graphical user interface 
   has been generated automatically by RemoteXY editor.
   To compile this code using RemoteXY library 2.4.3 or later version 
   download by link http://remotexy.com/en/library/
   To connect using RemoteXY mobile app by link http://remotexy.com/en/download/                   
     - for ANDROID 4.3.1 or later version;
     - for iOS 1.3.5 or later version;
    
   This source code is free software; you can redistribute it and/or
   modify it under the terms of the GNU Lesser General Public
   License as published by the Free Software Foundation; either
   version 2.1 of the License, or (at your option) any later version.    
*/

//////////////////////////////////////////////
//        RemoteXY include library          //
//////////////////////////////////////////////

// RemoteXY select connection mode and include library 
#define REMOTEXY_MODE__ESP8266_SOFTSERIAL_CLOUD
#include <SoftwareSerial.h>

#include <RemoteXY.h>

// RemoteXY connection settings 
#define REMOTEXY_SERIAL_RX 2
#define REMOTEXY_SERIAL_TX 3
#define REMOTEXY_SERIAL_SPEED 9600
#define REMOTEXY_WIFI_SSID "xxxxxxxx"
#define REMOTEXY_WIFI_PASSWORD "xxxxxxx"
#define REMOTEXY_CLOUD_SERVER "cloud.remotexy.com"
#define REMOTEXY_CLOUD_PORT 6376
#define REMOTEXY_CLOUD_TOKEN "022cff562d1104e19650b5168541d64c"


// RemoteXY configurate  
#pragma pack(push, 1)
uint8_t RemoteXY_CONF[] =
  { 255,4,0,0,0,71,0,8,13,0,
  2,0,2,24,22,11,2,26,31,31,
  79,78,0,79,70,70,0,2,0,27,
  24,22,11,2,26,31,31,79,78,0,
  79,70,70,0,2,0,52,24,22,11,
  2,26,31,31,79,78,0,79,70,70,
  0,2,0,77,24,22,11,2,26,31,
  31,79,78,0,79,70,70,0 };
  
// this structure defines all the variables of your control interface 
struct {

    // input variable
  uint8_t switch_1; // =1 if switch ON and =0 if OFF 
  uint8_t switch_2; // =1 if switch ON and =0 if OFF 
  uint8_t switch_3; // =1 if switch ON and =0 if OFF 
  uint8_t switch_4; // =1 if switch ON and =0 if OFF 

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

} RemoteXY;
#pragma pack(pop)

/////////////////////////////////////////////
//           END RemoteXY include          //
/////////////////////////////////////////////

#define PIN_SWITCH_1 4
#define PIN_SWITCH_2 5
#define PIN_SWITCH_3 6
#define PIN_SWITCH_4 7


void setup() 
{
  RemoteXY_Init (); 
  
  pinMode (PIN_SWITCH_1, OUTPUT);
  pinMode (PIN_SWITCH_2, OUTPUT);
  pinMode (PIN_SWITCH_3, OUTPUT);
  pinMode (PIN_SWITCH_4, OUTPUT);
  
  // TODO you setup code
  
}

void loop() 
{ 
  RemoteXY_Handler ();
  
  digitalWrite(PIN_SWITCH_1, (RemoteXY.switch_1==0)?LOW:HIGH);
  digitalWrite(PIN_SWITCH_2, (RemoteXY.switch_2==0)?LOW:HIGH);
  digitalWrite(PIN_SWITCH_3, (RemoteXY.switch_3==0)?LOW:HIGH);
  digitalWrite(PIN_SWITCH_4, (RemoteXY.switch_4==0)?LOW:HIGH);
  
  // TODO you loop code
  // use the RemoteXY structure for data transfer


}

4 (edited by Guillaume 2020-01-29 08:49:40)

Re: Cloud server issue

I don't know why it doesn't work for you, try increase serial speed to like 115200 or more.

And do you know the esp8266 can be used alone and programmed exactly like an arduino board? It's much faster, more powerful and with much more memory, than most arduino boards.

5

Re: Cloud server issue

Hi Guillaume,
Yes I know about standalone programming of ESP8266. For that I have NodeMCU board. It also works flawlessly as wifi access point and have same problem with cloud server. Right now I work with this module.
I did research and found possible reason of my issue. Maybe it is about ports... ???
My network provider doesnt allow any open port by default, they can open them by special request. Unfortunately I am not owner of internet contract and also I dont have access to network main router, so I cant change that. I plan go to my friend to test my "theory", he can manage his network ports.
What do you guess, can closed ports cause this cloud server access issue ??

6

Re: Cloud server issue

I think so