The Hibernate mode requires the physical Waspmote's hibernate switch to be put in "enable" position. It is
necessary to follow the next steps when executing the program for the first time after uploading it to Waspmote:
1. Connect the battery.
2. Switch Waspmote on.
3. Wait for the red LED to light on and turn the hibernate switch to the "enable" position while the red LED is on.
4. Once the hibernate switch is in the "enable" position, the green LED must blink to indicate that the program
is running.
The following example would set Waspmote in the Hibernate mode for 2 days, 1 hour and 30 minutes. The
microcontroller would be switched off waiting for the RTC to switch the device on again with a synchronous
interruption.
{
PWR.hibernate("02:01:30:00", RTC_OFFSET, RTC_ALM1_MODE2);
}
Related API libraries: WaspPWR.h, WaspPWR.cpp
All information about the programming and operation of sleep modes can be found in the
Guide.
All the documentation is located in the
Development section
in the Libelium website.
-71-
Energy system
Interruption Programming
v8.2
Need help?
Do you have a question about the Waspmote and is the answer not in the manual?