Lỗi multiple libraries were found for softwareserial.h năm 2024

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Show

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

You are not logged in. Please login or register.

Active topics Unanswered topics

Pages 1

You must login or register to post a reply

1

  • bjorny
  • New member
  • Offline
  • Registered: 2021-11-19
  • Posts: 8

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 Reply by remotexy

  • Lỗi multiple libraries were found for softwareserial.h năm 2024
  • remotexy
  • Administrator
  • Offline
  • Registered: 2016-10-27
  • Posts: 960

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

3 Reply by bjorny

  • bjorny
  • New member
  • Offline
  • Registered: 2021-11-19
  • Posts: 8

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

It works great. Thanks!

Posts: 3

Pages 1

You must login or register to post a reply