sensebox / node-sketch-templater

Arduino sketch templates used by the openSenseMap-api
MIT License
2 stars 2 forks source link

Defect: SDS.wakeup() does not work, SDS.sleep() does. #56

Open Wvanlaa opened 3 years ago

Wvanlaa commented 3 years ago

Expected Behavior

Using the OpenSenseMap provided Arduino packages, I would like to create a routine in the OpenSenseMap provided .INO sketch to only do PM-measurement every 15th measurement. So, would do a SDS.sleep(); after a measurement, wait 15 "loops" that take place every 60 seconds. And then do SDS.wakeup() again.

have found a "fix", would be good to get that implemented.

Actual Behavior

SDS.sleep() absolutely works, but the SDS.Wakeup() command does not. This seems a known issue based on how the CPP file is setup. For this, please see: https://github.com/ricki-z/SDS011/issues/21.

I have altered the .CPP file according to the solution in the post above of ricki-z, and now it all works.

Environment