Go Down

Topic: MKRFOX1200 max deepSleep period (Read 359 times) previous topic - next topic

iverona

Hello,

What's the max deepSleep period allowed on a MKRFOX1200? The function is defined as:

Code: [Select]

void deepSleep(void);
void deepSleep(uint32_t millis);
void deepSleep(int millis) {
    deepSleep((uint32_t)millis);
}


So I should be able to use the UINT32_MAX which is 4294967295UL, but if I try for example, to sleep for 24H:

Code: [Select]

#define WAKE_UP_INTERVAL_24H 86400000UL //24H
...
LowPower.deepSleep(WAKE_UP_INTERVAL_24H);


The board wakes up immediately after reset. Am I doing something wrong?

thanks!

iverona

Forgot to mention that:

Code: [Select]

#define WAKE_UP_INTERVAL_6H 21600000UL  //6H


Works. And that I've also tried casting the value to uint32_t when calling deepSleep but no difference.


Go Up