1 (edited by rayb12 2021-03-23 04:05:02)

Topic: RemoteXY with Espressif Arduino Core

Does anyone know if RemoteXY can be used with the Espressif Arduino Core?  I'm using an ESP32 WROOM module and have been using the Espressif Arduino core found here:  https://github.com/espressif/arduino-esp32.

I have many sketches that compile and run just fine with this setup.

But when I try to compile the getting started example from RemoteXY I get the following compile error(s):

In file included from C:\Users\rayb1\Documents\Arduino\RemoteXY\RemoteXY.ino:28:0:

C:\Users\rayb1\Documents\Arduino\RemoteXY\RemoteXY.ino: In function 'void setup()':

C:\Users\rayb1\Documents\Arduino\libraries\RemoteXY\src/RemoteXY.h:153:77: error: 'RemoteXY' was not declared in this scope

I'm literally using the RemoteXY getting started example as is.

Any help is greatly appreciated!

2

Re: RemoteXY with Espressif Arduino Core

Please share your sketch

3

Re: RemoteXY with Espressif Arduino Core

Here is the sketch I'm trying to compile:

/*
   -- 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.5.1 or later version;
     - for iOS 1.4.1 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__ESP32CORE_WIFI
#include <WiFi.h>

#include <RemoteXY.h>

// RemoteXY connection settings
#define REMOTEXY_WIFI_SSID "RaysTest"
#define REMOTEXY_WIFI_PASSWORD "TestPass"
#define REMOTEXY_SERVER_PORT 6377
#define REMOTEXY_ACCESS_PASSWORD "Rayb"


// RemoteXY configurate 
#pragma pack(push, 1)
uint8_t RemoteXY_CONF[] =
  { 255,1,0,1,0,19,0,10,191,0,
  66,1,52,20,7,16,2,26,4,0,
  40,20,7,18,2,26 };
 
// this structure defines all the variables and events of your control interface
struct {

    // input variables
  int8_t slider_1; // =0..100 slider position

    // output variables
  int8_t level_1; // =0..100 level position

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

} RXY;
#pragma pack(pop)

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



void setup()
{
  RemoteXY_Init ();
  Serial.begin(115200);   // Open serial monitor communications and wait for port to open:
  while (!Serial); // wait for serial port to connect. Needed for native USB port only
  Serial.println("opened pc port to 115200");
 
  // TODO you setup code
 
}

void loop()
{
  RemoteXY_Handler ();
 
//  RXY.level_1 = RXY.slider_1;
  // TODO you loop code
  // use the RemoteXY structure for data transfer
  // do not call delay()


}

4

Re: RemoteXY with Espressif Arduino Core

@remotexy, Nevermind.  I found the problem.  I didn't realize the Struct assigned to RemoteXY was being used elsewhere and I renamed it.

Sorry for the trouble.  Thank you for your help!