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

Board manager ver. 2.6.1 for ESP8266 breaks library. #26

Open
bill-orange opened this issue Nov 14, 2019 · 2 comments
Open

Board manager ver. 2.6.1 for ESP8266 breaks library. #26

bill-orange opened this issue Nov 14, 2019 · 2 comments

Comments

@bill-orange
Copy link

bill-orange commented Nov 14, 2019

A new board manager for the ESP 8266 was released. Among other changes the syntax for Software serial was changed. For the library to compile change the following in SDS011.cpp.

is around line 105:
SoftwareSerial *softSerial = new SoftwareSerial(_pin_rx, _pin_tx);

change to:
SoftwareSerial *softSerial = new SoftwareSerial();

is around line 107:
softSerial->begin(9600);
change to:
softSerial->begin(9600,SWSERIAL_8N1,_pin_rx, _pin_tx,false,32);

is around line 126:
serial->begin(9600);

change to:
serial->begin(9600,SWSERIAL_8N1,_pin_rx, _pin_tx,false,32);

Let me know if this works for you too.

@Plo-Koon
Copy link

Your solution does not work for me and I have tried other changes but it is still not working. However, if I use the library from Arduino library manager instead of this one in GitHub, there is no need of changes. It compiles successfully without errors. I'm using Arduino IDE 1.8.11 with NodeMCU v3 ESP8266.

@bill-orange
Copy link
Author

I notice that since my post, SoftwareSerial has been revised at least couple of more times. The recent changes probably affected my fix.

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

2 participants