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
ESP32 and DHT22 low memory #1687
Comments
use a simple code like this to reproduce the memory leak:
|
Create thread on the forum: @MaBecker, me use this simple code and memory low after some time |
ok, just check the module with a ESP8266 without memory leaks. The module is using some calls like
which use ESP32 specific code. So please test the interval with digitalWrite and pinMode and share the results. |
run test by test and share your results
|
Test 1:
Test 2:
Test 3:
Test 4:
repeated without changes |
If me use read() function once: rh = -1, err = true, checksumError = false every time if call two read()
next call read() get normal rh memory leak in d virable
For example:
if add conditional to setWatch function:
me get normal rh without memory leak. I need a temp fix, is this true or is there a mistake?
|
Not related to ESP32, it's the script has a bug. |
Thanks! |
Update DHT22.js module as per discussion in http://forum.espruino.com/comments/14870784/ see also espruino/Espruino#1687
Hi. I'm use esp32-wroom-32 and DHT22 sensor with DHT22.js script.
I call the read function every 5 seconds and every time I get less and less memory, the log below as it was at the beginning of work was 1917, and after a while it was already 1887 and so on until there is an error.
What my problem?
My code:
My logs:
The text was updated successfully, but these errors were encountered: