1

Topic: Error when compiling, when set “Software Serial”

When compiling source code from RemoteXY I get error below when set to “Software Serial”. If module interface is set to Hardware Serial (RX 0, TX 1) it works correct. I tried to reinstall library RemoteXY, and reinstall Arduino IDE. Same errors occur.
Eg strange error: “Multiple libraries were found for "SoftwareSerial.h"” Cannot find multiple, even after reinstallation.
Configure: Cloud; Arduino Uno; Esp8266 Wifi; Arduino IDE
Module interface: Software Serial; RX 2, TX 3; etc…
Arduino IDE: 1.8.19

Any suggestion?




In file included from C:\Users\<xxx>\test_seriell\test_seriell.ino:26:0:
C:\Users\ <xxx> \Documents\Arduino\libraries\RemoteXY\src/RemoteXY.h:205:3: error: 'CRemoteXYCloud' does not name a type; did you mean 'CRemoteXYComm'?
   CRemoteXYCloud *remotexy;
   ^~~~~~~~~~~~~~
   CRemoteXYComm
C:\Users\<xxx>\test_seriell\test_seriell.ino: In function 'void setup()':
C:\Users\ <xxx> \Documents\Arduino\libraries\RemoteXY\src/RemoteXY.h:206:27: error: 'remotexy' was not declared in this scope
   #define RemoteXY_Init() remotexy = new CRemoteXY (RemoteXY_CONF_PROGMEM, &RemoteXY, REMOTEXY_ACCESS_PASSWORD, new CRemoteXYConnectionCloud (new CRemoteXYComm_ESP8266 (new CRemoteXYStream_SoftSerial (REMOTEXY_SERIAL_RX, REMOTEXY_SERIAL_TX, REMOTEXY_SERIAL_SPEED), REMOTEXY_WIFI_SSID, REMOTEXY_WIFI_PASSWORD), REMOTEXY_CLOUD_SERVER, REMOTEXY_CLOUD_PORT, REMOTEXY_CLOUD_TOKEN))
                           ^
C:\Users\<xxx>\test_seriell\test_seriell.ino:67:3: note: in expansion of macro 'RemoteXY_Init'
C:\Users\ <xxx> \Documents\Arduino\libraries\RemoteXY\src/RemoteXY.h:206:27: note: suggested alternative: 'RemoteXY'
   #define RemoteXY_Init() remotexy = new CRemoteXY (RemoteXY_CONF_PROGMEM, &RemoteXY, REMOTEXY_ACCESS_PASSWORD, new CRemoteXYConnectionCloud (new CRemoteXYComm_ESP8266 (new CRemoteXYStream_SoftSerial (REMOTEXY_SERIAL_RX, REMOTEXY_SERIAL_TX, REMOTEXY_SERIAL_SPEED), REMOTEXY_WIFI_SSID, REMOTEXY_WIFI_PASSWORD), REMOTEXY_CLOUD_SERVER, REMOTEXY_CLOUD_PORT, REMOTEXY_CLOUD_TOKEN))
                           ^
C:\Users\<xxx>\test_seriell\test_seriell.ino:67:3: note: in expansion of macro 'RemoteXY_Init'
In file included from C:\Users\<xxx>\test_seriell\test_seriell.ino:26:0:
C:\Users\<xxx>\test_seriell\test_seriell.ino: In function 'void loop()':
C:\Users\ <xxx> \Documents\Arduino\libraries\RemoteXY\src/RemoteXY.h:151:28: error: 'remotexy' was not declared in this scope
#define RemoteXY_Handler() remotexy->handler ()
                            ^
C:\Users\<xxx>\test_seriell\test_seriell.ino:77:3: note: in expansion of macro 'RemoteXY_Handler'
C:\Users\ <xxx> \Documents\Arduino\libraries\RemoteXY\src/RemoteXY.h:151:28: note: suggested alternative: 'RemoteXY'
#define RemoteXY_Handler() remotexy->handler ()
                            ^
C:\Users\<xxx>\test_seriell\test_seriell.ino:77:3: note: in expansion of macro 'RemoteXY_Handler'
Multiple libraries were found for "SoftwareSerial.h"
Used: C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SoftwareSerial
Unused: C:\Users\<xxx>\Documents\Arduino\libraries\EspSoftwareSerial
exit status 1
Error compiling for board Arduino Uno.

2

Re: Error when compiling, when set “Software Serial”

I found this bug. Will be fixed in the next version of the library.
Now you can fix it yourself in the remotexy.h library file.
Find string:

CRemoteXYCloud *remotexy;

replase

CRemoteXY *remotexy;

3

Re: Error when compiling, when set “Software Serial”

It works great. Thanks!