Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Error in SoftwareSerial during compiling #23

Closed
UnrealKazu opened this issue Oct 31, 2019 · 3 comments
Closed

Error in SoftwareSerial during compiling #23

UnrealKazu opened this issue Oct 31, 2019 · 3 comments

Comments

@UnrealKazu
Copy link

When compiling the latest master I get the following error for the SoftwareSerial dependency:

In file included from sketch\GoodWeCommunicator.h:3:0,

                 from sketch\GoodWeCommunicator.cpp:1:

C:\Users\X\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\SoftwareSerial\src/SoftwareSerial.h:113:2: error: 'ssize_t' does not name a type

  ssize_t m_swsInstsIdx = -1;

  ^

I am using the latest version of the Arduino IDE (1.8.10), as well as all dependent libraries mentioned in the README.

As you can see, the version of the SoftwareSerial library that is used is part of 2.5.2 of the esp8266 package. Compiling an older commit does work, for example, this fork.

@chemuki205
Copy link

Hi

I have a similar problem compiling the code and I don't know how to solve it, I would appreciate any help to be able to use it in two goodwe inverters.

Arduino:1.8.12 (Windows 10), Tarjeta:"LOLIN(WEMOS) D1 mini Lite, 80 MHz, Flash, Legacy (new can return nullptr), All SSL ciphers (most compatible), 1MB (FS:64KB OTA:~470KB), v2 Lower Memory, Disabled, None, Only Sketch, 921600"

sketch\GoodWeCommunicator.cpp: In member function 'void GoodWeCommunicator::start()':

GoodWeCommunicator.cpp:14:91: error: no matching function for call to 'SoftwareSerial::SoftwareSerial(int&, int&, bool, const int&)'

  goodweSerial = new SoftwareSerial(settings->RS485Rx, settings->RS485Tx, false, BufferSize); // (RX, TX. inverted, buffer)

                                                                                           ^

sketch\GoodWeCommunicator.cpp:14:91: note: candidates are:

In file included from sketch\GoodWeCommunicator.h:3:0,

                 from sketch\GoodWeCommunicator.cpp:1:

C:\Users\Chema\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.6.3\libraries\SoftwareSerial\src/SoftwareSerial.h:94:5: note: SoftwareSerial::SoftwareSerial(int8_t, int8_t, bool)

     SoftwareSerial(int8_t rxPin, int8_t txPin = -1, bool invert = false);

     ^

C:\Users\Chema\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.6.3\libraries\SoftwareSerial\src/SoftwareSerial.h:94:5: note:   candidate expects 3 arguments, 4 provided

C:\Users\Chema\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.6.3\libraries\SoftwareSerial\src/SoftwareSerial.h:90:5: note: SoftwareSerial::SoftwareSerial()

     SoftwareSerial();

     ^

C:\Users\Chema\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.6.3\libraries\SoftwareSerial\src/SoftwareSerial.h:90:5: note:   candidate expects 0 arguments, 4 provided

exit status 1
no matching function for call to 'SoftwareSerial::SoftwareSerial(int&, int&, bool, const int&)'

@djares01
Copy link

If you change your board manager model version to 2.4.2 it works

@jantenhove
Copy link
Owner

I am currently testing a fix for this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants