-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
no sleep()/wakeup() for ESP32 #35
Comments
adding some print-statements to this code it outputs this:
the numbers have this meaning: So it looks like the sensor is working. But the sleep() does nothing. |
Hi, below is a copy paste of a code I use.
|
Please check the pins the SDS011 ist connected to and that these are the same than in the definition (SDS_PIN_RX, SDS_PIN_TX). And check that the connecting cable between the ESP32 and the RX pin of the SDS011 is okay. |
I have an idea: in the code the wakeup()-function is realized as: For my tests I used the little program I presented in the beginning of this thread. On the ESP32-board the SDS011 starts working, put to sleep but would never wakeup again. I modified the source code into this form: Et voila: now it works. Can someone please verify my result? PS: this is the board I'm using: |
@AugustQu We use the liligo in a leisure facility and at my home as a kind of weather station! Can we somehow get in touch? I think we have the same goal ... the times of the paxcounter are not right yet! best regards Daniel |
@x-RoNiN-x Here on my side my test-code now works but only after I apply the modifications. And it also works on the paxcounter-side (= with the full software of the paxcounter). Maybe it's a problem with the board I'm using. Nevertheless I think it's a good idea to use the "official" command-string instead of this mighty trick. |
@AugustQu Best regards |
@x-RoNiN-x Nevertheless I would prefer having a software that works in both cases. So for me it would be the best approach to use the 'official wakeup-string'. |
@AugustQu can we have a PR for paxcounter for this? |
I am working with a ESP32 NodeMCU. Changed the .cpp like @AugustQu commented on Apr 21, 2020 and it worked. |
Hi,
I'm working with a board containing the ESP32 plus this library. I can receive values for PM2.5 and PM10, but I cannot put the SDS011 to sleep.
Here is a simplified version of my code:
Any tips?
The text was updated successfully, but these errors were encountered: