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

Question setting the duration of sleep mode #119

Open
EmcSquared opened this issue Jan 1, 2018 · 0 comments
Open

Question setting the duration of sleep mode #119

EmcSquared opened this issue Jan 1, 2018 · 0 comments

Comments

@EmcSquared
Copy link

Hi,
Happy New Year everyone.

I have an issue/questions with duration a node goes to 'sleep' mode using RF24Network::sleepNode:

  • whatever I do it seems that the total sleep duration is not the product of 'number of cycles' and cycle period (as set by 'setup_watchdog'). Here is an example:
    I used this line to set the cycle:
    network.setup_watchdog(wdt_8s);
    and these to enter the module in sleep mode:
    radio.stopListening(); radio.powerDown(); network.sleepNode(212,0); radio.powerUp();
    Now the total sleep time should be 212*8 = 1696 seconds, but it is not; It is 1918 seconds, every time!
    I am using Arduino Uno R3, and what I am trying to do is to send a sensor reading every 30 mins.
    Am I missing something here?

Thanks for your help

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

No branches or pull requests

2 participants