|
|
|
|
@ -66,7 +66,7 @@ static osjob_t sendjob;
@@ -66,7 +66,7 @@ static osjob_t sendjob;
|
|
|
|
|
|
|
|
|
|
// Schedule TX every this many seconds (might become longer due to duty
|
|
|
|
|
// cycle limitations).
|
|
|
|
|
const unsigned TX_INTERVAL = 60; |
|
|
|
|
const unsigned TX_INTERVAL = 600; |
|
|
|
|
|
|
|
|
|
// Pin mapping
|
|
|
|
|
//
|
|
|
|
|
@ -230,7 +230,9 @@ void onEvent(ev_t ev) {
@@ -230,7 +230,9 @@ void onEvent(ev_t ev) {
|
|
|
|
|
|
|
|
|
|
Serial1.println(F("vor sleep")); |
|
|
|
|
Serial1.flush(); |
|
|
|
|
LowPower.sleep(50000); |
|
|
|
|
|
|
|
|
|
LowPower.sleep((uint32_t) (TX_INTERVAL-10)*1000); // bis kurz vor dem Ereignis schlafen
|
|
|
|
|
|
|
|
|
|
Serial1.println(F("wieder aufgewacht")); // => er wacht nicht wieder auf
|
|
|
|
|
|
|
|
|
|
break; |
|
|
|
|
|