lewapek / sds-dust-sensors-arduino-library

Library for Nova Fitness SDS dust sensors family (SDS011, SDS021)
MIT License
65 stars 19 forks source link

SoftwareSerial library api change #14

Open coelner opened 5 years ago

coelner commented 5 years ago

Hey,

with the current version 5.2.2 for the esp8266 platform we have an api change in the library: https://github.com/plerup/espsoftwareserial/commit/2bbedb761670fed38ee3b3057843da2face7695c#diff-8d137b6230feb3539a63ba9284979346

  1. move the Rx, Tx Pin to the begin()
  2. maybe optimize the buffer size
lewapek commented 5 years ago

Hi, thanks for reporting that! Currently, I don't have time to check if the library will be compatible with the newer esp8266 platform having initialization refactored.

The best option (I don't know if possible) would be to add esp8266 platform version somewhere to dependencies or at least make note in the docs (readme).

I need to check if Arduino SoftwareSerial init is also updated in the similar way as esp8266

When I will find some time I will update and test the library