bertmelis / SDS011

Non blocking SDS011 sensor library for ESP8266
MIT License
16 stars 8 forks source link

Error-Feature request #1

Closed Bergerie closed 4 years ago

Bergerie commented 4 years ago

I'm trying to use yr example but unfortunatley it keeps coming up with the following error at 👍 sds011.onResponse([](){ // command has been executed }); error: no matching function for call to 'SDS011::onResponse(setup()::__lambda5)'

Moreover, my MQTT broker uses an mqttusername and mqttpassword, could that be implemented. Thnks in advance.

bertmelis commented 4 years ago

I've updated the example: https://github.com/bertmelis/SDS011/pull/3

For mqtt try this:

mqttClient.setCredentials("username", "password");