forked from JackGruber/Arduino-Pro-Mini-LoRa-Sensor-Node
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from CK1-CK/First-Alarm-Loop
Alarm-Loop-Check
- Loading branch information
Showing
6 changed files
with
31 additions
and
17 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
#define LORA_TX_INTERVAL 900 //KeepAlive-WatchDog Signal every n Secondes | ||
#define LORA_TX_INTERVAL 1200 //KeepAlive-WatchDog Signal every n Secondes | ||
#define LMIC_LORA_SF DR_SF7 // LORA Data rate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
#include "global.h" | ||
#include "io_pins.h" | ||
|
||
volatile uint8_t door_state = 0; // DOOR-Status open/closed | ||
volatile uint8_t watchdog = 1; // Watchdog, Differentiation between watchdog and real alarm. 1=WatchDogSignal 0=Real DoorAlarm | ||
volatile uint8_t AlarmMode_Enabled = 0; // Alarmmode 1=Enabled | ||
volatile unsigned long oldTime=0, minSendIntervall=300000; | ||
volatile uint8_t door_state = 0; // DOOR-Status open/closed | ||
volatile uint8_t watchdog = 1; // Watchdog, Differentiation between watchdog and real alarm. 1=WatchDogSignal 0=Real DoorAlarm | ||
volatile uint8_t AlarmMode_Enabled = 0; // Alarmmode 1=Enabled | ||
volatile unsigned long oldTime = 0; | ||
volatile unsigned long minSendIntervall = 60000; // Intervall to Send Alarm Pakages in ms 60000=1min |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters