1

Topic: Thinspeak connection while in Remotexy

Hello.

How can i post some values to thinspeak account within remotexy without disturbing remotexy functionality.

Remotexy currently working on internet connection over an esp8266.
if i try to connect to the thingspeak server, remotexy connection gets lost.

2

Re: Thinspeak connection while in Remotexy

I have the same problem.

Any solution?

3

Re: Thinspeak connection while in Remotexy

If ESP8266 as core, and RemoteXY via cloud, then next examle

CRemoteXY *remotexy;
CRemoteXYComm_WiFi *remoteXY_WiFi;
WiFiClient myClient;

void setup() 
{

  remoteXY_WiFi = new CRemoteXYComm_WiFi ("myHomeWiFiName","myHomeWiFiPass");
        
  remotexy = new CRemoteXY (
    RemoteXY_CONF_PROGMEM, 
    &RemoteXY, 
    "", 
    new CRemoteXYConnectionCloud (
      remoteXY_WiFi,          
      "cloud.remotexy.com",   // REMOTEXY_CLOUD_SERVER
      6376,                   // REMOTEXY_CLOUD_PORT
      "xxxxxxxxxxxxxxxxxxxx"  // REMOTEXY_CLOUD_TOKEN
    )
  ); 

  // TODO you setup code
  
}

void loop() 
{ 
  remotexy->handler ();
  
  if (remoteXY_WiFi->configured ()) {
    //WIFI connected
    if (! myClient.connected()) {
      if (myClient.connect("www.myserver.com", 80)) {
        //myserver connected
      }
    }
  }
}