File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed
Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -27,8 +27,8 @@ void setup() {
2727 Log.begin (115200 );
2828 Log.setLogLevel (LogLevel::DEBUG);
2929
30- // Start LTE modem, configure the power save configuration and wait until we
31- // are connected to the operator
30+ // Configure the power save configuration, start the LTE modem and wait
31+ // until we are connected to the operator
3232 //
3333 // Here we say that we want to sleep for 30 seconds * 2 = 60 seconds each
3434 // time we invoke sleep
Original file line number Diff line number Diff line change @@ -20,20 +20,17 @@ enum class SleepMultiplier {
2020
2121enum class WakeUpReason {
2222 // Invoked if the sleep time retrieved from the operator wasn't valid
23- INVALID_SLEEP_TIME = 4 ,
23+ INVALID_SLEEP_TIME = 3 ,
2424
2525 // Invoked if it took so long to put the modem in sleep that it wasn't time
2626 // left for the CPU to sleep. The sleep time should be considered to be
2727 // increased.
28- MODEM_TIMEOUT = 3 ,
28+ MODEM_TIMEOUT = 2 ,
2929
3030 // The modem went out of sleep before the total time, which may happen if
3131 // e.g. the interval of needing to send MQTT heartbeat is lower than the
3232 // sleep time.
33- AWOKEN_BY_MODEM_PREMATURELY = 2 ,
34-
35- // If some unknown external interrupt caused the CPU to wake up
36- AWOKEN_BY_EXTERNAL_EVENT = 1 ,
33+ AWOKEN_BY_MODEM_PREMATURELY = 1 ,
3734
3835 OK = 0 ,
3936};
You can’t perform that action at this time.
0 commit comments