The ESP32 example compiled fine for ESP32 boards, at least in my environment of the Ardoino libraries and IDE.
The SDS011_example would not compile for any ESP8266 board I tested.
Arduino: 1.8.9 (Windows 10), Board: "NodeMCU 0.9 (ESP-12 Module), 80 MHz, Flash, Disabled, All SSL ciphers (most compatible), 4M (no SPIFFS), v2 Lower Memory, Disabled, None, Only Sketch, 115200"
C:\Users\William\Documents\Arduino\libraries\SDS011-master\SDS011.cpp:118:46: error: invalid conversion from 'int8_t {aka signed char}' to 'SerialMode' [-fpermissive]
#ifdef ESP32
void SDS011::begin(HardwareSerial* serial, int8_t rxPin, int8_t txPin) {
serial->begin(9600, SERIAL_8N1, rxPin, txPin);
sds_data = serial;
}
#endif
I think to fix it you need to do this to SDS011.cpp
I have not tested this. thoughts?
The ESP32 example compiled fine for ESP32 boards, at least in my environment of the Ardoino libraries and IDE.
The SDS011_example would not compile for any ESP8266 board I tested.
I think to fix it you need to do this to SDS011.cpp
I have not tested this. thoughts?