1

Topic: REMOTEXY_MODE__ESP32CORE_WIFI_CLOUD

Hey, everybody!
I'm having a problem connecting to the cloud (((
everything has been checked many times, but it doesn't work.

Library version: 3.1.12

I see that in the examples of the WiFi_cloud library the esp32 loi is completely different from the code generated by the constructor on the site

2

Re: REMOTEXY_MODE__ESP32CORE_WIFI_CLOUD

it's done by the designer on the site.
void setup()
{
  RemoteXY_Init ();
 
 
  // TODO you setup code
 
}

and this is written in the library in the example WiFi_cloud.pde
void setup()
{
  remotexy = new CRemoteXY (
    RemoteXY_CONF_PROGMEM,
    &RemoteXY,
    new CRemoteXYConnectionCloud (
      new CRemoteXYComm_WiFi (
        "myHomeFiFi", // REMOTEXY_WIFI_SSID
        "myPass"), // REMOTEXY_WIFI_PASSWORD
      "cloud.remotexy.com", // REMOTEXY_CLOUD_SERVER.
      6376, // REMOTEXY_CLOUD_PORT
      "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" // REMOTEXY_CLOUD_TOKEN
    )
  );
 
 
  // TODO you setup code
 
}

3

Re: REMOTEXY_MODE__ESP32CORE_WIFI_CLOUD

Yes. You may notice that the code in the examples differs from the code from the editor. Not really. The code from the editor uses the settings from the definitions. Then these definitions are built into exactly the same code that you see in the examples. This is making the library.
Code from editor:

#define REMOTEXY_MODE__ESP32CORE_WIFI_CLOUD
#define REMOTEXY_WIFI_SSID "YOUR_SSID"
#define REMOTEXY_WIFI_PASSWORD "YOUR_PASS"
#define REMOTEXY_CLOUD_SERVER "cloud.remotexy.com"
#define REMOTEXY_CLOUD_PORT 6376
#define REMOTEXY_CLOUD_TOKEN "xxxxxxxxxxxxxxxxxxxxxx"
void setup() 
{
  RemoteXY_Init ();  
}

Define RemoteXY_Init:

  #define RemoteXY_Init() remotexy = new CRemoteXY (RemoteXY_CONF_PROGMEM, &RemoteXY, new CRemoteXYConnectionCloud (new CRemoteXYComm_WiFi (REMOTEXY_WIFI_SSID, REMOTEXY_WIFI_PASSWORD), REMOTEXY_CLOUD_SERVER, REMOTEXY_CLOUD_PORT, REMOTEXY_CLOUD_TOKEN), REMOTEXY_ACCESS_PASSWORD)      

You can use the following definition at the beginning of the sketch to get debugging information on the serial port at speed 115200. Maybe this will help understand what's wrong.

#define REMOTEXY__DEBUGLOG