-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent SDS011 and GPS hanging; prevent MQ135 errors
- Loading branch information
1 parent
85fc49e
commit 5bb63a6
Showing
4 changed files
with
27 additions
and
15 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
## Here we store settings, credentials and constants. | ||
|
||
# LoRa config info | ||
APP_EUI = '30AEA459134C0000' | ||
APP_KEY = '38C9AD4E8B69241FE50AB179932CAE1F' | ||
LORA_SF = 9 # LoRa Spreading Factor (7 to 12) | ||
APP_EUI = '30AEA47870B40000' | ||
APP_KEY = '93F032DE681792632F0B928B555DAAB8' | ||
LORA_SF = 12 # LoRa Spreading Factor (7 to 12) | ||
LORA_DR = 12 - LORA_SF # Data Rate complement of Spreading Factor (counted inversely from 0 to 5) | ||
|
||
MEASURE_INTERVAL = 60 # measure every ... seconds | ||
BOOT_TIME = 3 # time in seconds (approx) it takes to start SDS011 from poweron | ||
WAKE_TIME = 30 # time in seconds that the SDS011 and MQ135 need to stabilize | ||
WAKE_TIME = 32 # time in seconds that the SDS011 and MQ135 need to stabilize | ||
PEAK_TIME = 6 # time in seconds to wait after starting voltage regulator | ||
DISPLAY_TIME = 6 # time in seconds to display values on the internal display | ||
SLEEP_TIME = MEASURE_INTERVAL - BOOT_TIME - WAKE_TIME | ||
|
||
DEBUG_MODE = True | ||
DEBUG_MODE = False |