|
|
|
|
@ -68,6 +68,8 @@ static osjob_t sendjob;
@@ -68,6 +68,8 @@ static osjob_t sendjob;
|
|
|
|
|
// cycle limitations).
|
|
|
|
|
const unsigned TX_INTERVAL = 600; |
|
|
|
|
|
|
|
|
|
uint8_t WasTustDu; |
|
|
|
|
|
|
|
|
|
// Pin mapping
|
|
|
|
|
//
|
|
|
|
|
// Adafruit BSPs are not consistent -- m0 express defs ARDUINO_SAMD_FEATHER_M0,
|
|
|
|
|
@ -135,6 +137,7 @@ void do_send(__attribute__((unused)) osjob_t *j) {
@@ -135,6 +137,7 @@ void do_send(__attribute__((unused)) osjob_t *j) {
|
|
|
|
|
} else { |
|
|
|
|
// Prepare upstream data transmission at the next possible time.
|
|
|
|
|
MessenSensoren(); |
|
|
|
|
WasTustDu=0; |
|
|
|
|
uint8_t *buffer = hse.getBuffer(); |
|
|
|
|
int size = hse.getSize(); |
|
|
|
|
|
|
|
|
|
@ -227,6 +230,9 @@ void onEvent(ev_t ev) {
@@ -227,6 +230,9 @@ void onEvent(ev_t ev) {
|
|
|
|
|
} |
|
|
|
|
// Schedule next transmission
|
|
|
|
|
os_setTimedCallback(&sendjob, os_getTime() + sec2osticks(TX_INTERVAL), do_send); |
|
|
|
|
Serial1.println(F("WasTustDu=")); |
|
|
|
|
Serial1.println(WasTustDu); |
|
|
|
|
WasTustDu++; |
|
|
|
|
PrintTimeDate(); |
|
|
|
|
|
|
|
|
|
//Serial1.println(F("vor sleep"));
|
|
|
|
|
@ -328,7 +334,6 @@ void setup() {
@@ -328,7 +334,6 @@ void setup() {
|
|
|
|
|
|
|
|
|
|
void loop() { |
|
|
|
|
os_runloop_once(); |
|
|
|
|
//LowPower.sleep(1000);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|