1

Topic: Library fault

When is use an generated code.
it gives me an compilation error about the library.
Someone knows this problem?

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

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

#include <RemoteXY.h>

// RemoteXY connection settings 
#define REMOTEXY_SERIAL_RX 2
#define REMOTEXY_SERIAL_TX 3
#define REMOTEXY_SERIAL_SPEED 9600


// RemoteXY configurate  
#pragma pack(push, 1)
uint8_t RemoteXY_CONF[] =   // 52 bytes
  { 255,5,0,0,0,45,0,16,31,0,3,3,4,3,11,30,2,26,5,0,
  62,16,30,30,2,26,1,10,48,2,44,15,15,4,26,31,79,78,0,31,
  79,70,70,0,4,0,20,3,10,29,2,26 };
  
// this structure defines all the variables and events of your control interface 
struct {

    // input variables
  uint8_t Mode; // =0 if select position A, =1 if position B, =2 if position C, ... 
  int8_t joystick_x; // from -100 to 100  
  int8_t joystick_y; // from -100 to 100  
  uint8_t Knipper; // =1 if state is ON, else =0 
  int8_t Closed; // =0..100 slider position 

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

} RemoteXY;
#pragma pack(pop)

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



void setup() 
{
  RemoteXY_Init (); 
  
  
  // TODO you setup code
  
}

void loop() 
{ 
  RemoteXY_Handler ();
  
  

Fout:
In file included from C:\Users\jogem\OneDrive\Documenten\Arduino\RemoteXY\RemoteXY.ino:26:0:
C:\Users\jogem\OneDrive\Documenten\Arduino\RemoteXY\RemoteXY.ino: In function 'void setup()':
c:\Users\jogem\OneDrive\Documenten\Arduino\libraries\RemoteXY\src/RemoteXY.h:177:117: error: expected type-specifier before 'CRemoteXYStream_SoftSerial'
   #define RemoteXY_Init() remotexy = new CRemoteXY (RemoteXY_CONF_PROGMEM, &RemoteXY, REMOTEXY_ACCESS_PASSWORD, new CRemoteXYStream_SoftSerial (REMOTEXY_SERIAL_RX, REMOTEXY_SERIAL_TX, REMOTEXY_SERIAL_SPEED))
                                                                                                                     ^
C:\Users\jogem\OneDrive\Documenten\Arduino\RemoteXY\RemoteXY.ino:65:3: note: in expansion of macro 'RemoteXY_Init'
   RemoteXY_Init ();
   ^~~~~~~~~~~~~

exit status 1

Compilation error: exit status 1

2

Re: Library fault

I want to use an Arduino Uno R4 Wifi.
When i change the board to an arduino Uno it compiles without an error.

3

Re: Library fault

Fixed in RemoteXY.h library 3.1.12 https://remotexy.com/en/library/

4

Re: Library fault

remotexy wrote:

Fixed in RemoteXY.h library 3.1.12 https://remotexy.com/en/library/

I'm getting the similar Init error. Please help!

/*
   -- New project --
   
   This source code of graphical user interface
   has been generated automatically by RemoteXY editor.
   To compile this code using RemoteXY library 3.1.11 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.11.4 or later version;
     - for iOS 1.9.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          //
//////////////////////////////////////////////

// you can enable debug logging to Serial at 115200
//#define REMOTEXY__DEBUGLOG 

// RemoteXY select connection mode and include library
#define REMOTEXY_MODE__ESP32CORE_BLE
#include <BLEDevice.h>

#include <RemoteXY.h>

// RemoteXY connection settings
#define REMOTEXY_BLUETOOTH_NAME "RemoteXY"


// RemoteXY configurate 
#pragma pack(push, 1)
uint8_t RemoteXY_CONF[] =   // 19 bytes
  { 255,1,0,0,0,12,0,16,31,1,1,0,18,36,12,12,2,31,0 };
 
// this structure defines all the variables and events of your control interface
struct {

    // input variables
  uint8_t button_1; // =1 if button pressed, else =0

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

} RemoteXY;
#pragma pack(pop)

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



void setup()
{
 
 
 
  // TODO you setup code
 
}

void loop()
{
  RemoteXY_Handler ();
 
 
  // TODO you loop code
  // use the RemoteXY structure for data transfer
  // do not call delay(), use instead RemoteXY_delay()


}

5

Re: Library fault

You removed the RemoteXY_Init() call

void setup() 
{
  RemoteXY_Init (); 
  
}

You must also select the "ESP32 Dev Module" board in IDE