1

Topic: How to use both cloud and LAN connection?

Hello

Is there any way to connect to remoteXY both via cloud and LAN? Why should I suffer cloud high latency while I'm at home?

Any help is really appreciated.

2

Re: How to use both cloud and LAN connection?

Yes, the new 3.x.x library does it. But you have to make changes to the code manually. The library contains an example that does this: ESP_WiFiServerAndCloud

3

Re: How to use both cloud and LAN connection?

Thanks for the good support (Although a long time has passed).
The example does not include any clue about using a password and the "#define REMOTEXY_ACCESS_PASSWORD" seems not to work. Could you help again?

remotexy wrote:

Yes, the new 3.x.x library does it. But you have to make changes to the code manually. The library contains an example that does this: ESP_WiFiServerAndCloud

4

Re: How to use both cloud and LAN connection?

This code shows how set REMOTEXY_ACCESS_PASSWORD in example ESP_WiFiServerAndCloud

void setup() 
{
  
  CRemoteXYComm_WiFi * wifi =  new CRemoteXYComm_WiFi (
    "myHomeFiFi",                            // REMOTEXY_WIFI_SSID
    "myPass"                                 // REMOTEXY_WIFI_PASSWORD
  );
  
  remotexy = new CRemoteXY (RemoteXY_CONF_PROGMEM, &RemoteXY, 
    "1234567"  // REMOTEXY_ACCESS_PASSWORD
  );
  
  remotexy->addConnection (new CRemoteXYConnectionServer ( wifi, 
    6377                                      // REMOTEXY_SERVER_PORT
  ));
  
  remotexy->addConnection (new CRemoteXYConnectionCloud ( wifi, 
    "cloud.remotexy.com",                     // REMOTEXY_CLOUD_SERVER 
    6376,                                     // REMOTEXY_CLOUD_PORT
    "xxxxxxxxxxxxxxxxxxxxxxxx"                // REMOTEXY_CLOUD_TOKEN
  ));
  
  
  
  // TODO you setup code
  
}