You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
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.
The text was updated successfully, but these errors were encountered: