Skip to content
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

Repeating reading need wakeup #1

Open
fabio1955 opened this issue Sep 8, 2020 · 2 comments
Open

Repeating reading need wakeup #1

fabio1955 opened this issue Sep 8, 2020 · 2 comments

Comments

@fabio1955
Copy link

The calls only work more than once if you start with wakeup

   shtc3.wakeup();
    delay(10);  
    shtc3.sample();
    temp=shtc3.readTempC();
    hum=shtc3.readHumidity();

The calls are inside a function called by the main loop.
Please note you only mention "wake" as keyword instead than "wakeup"

@ludiazv
Copy link
Owner

ludiazv commented Sep 9, 2020

Ciao @fabio1955,
There is no need to call wakeup() in the main loop. Calling sample() will wakeup the sensor, perform the sample, and put the sensor in sleep mode again.

@ludiazv
Copy link
Owner

ludiazv commented Oct 27, 2020

I fixed a bug in the wakeup() and reset() functions that did not honored the required delays of the sensors. It should solve the problem you found.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants