Anish updated the code to work with L152. RTC seems to causing issue. Will have to disable LSE.
Dependencies: mbed LoRaWAN-lib SX1276Lib
Diff: app/main.cpp
- Revision:
- 26:2cdfd2d309a6
- Parent:
- 25:2902c751ee57
- Child:
- 27:f024c8c51c6e
diff -r 2902c751ee57 -r 2cdfd2d309a6 app/main.cpp --- a/app/main.cpp Mon Apr 01 16:12:10 2019 +0000 +++ b/app/main.cpp Wed Apr 03 11:30:23 2019 +0000 @@ -157,9 +157,9 @@ Timeout buttonOptions_timeout; // Used for determining number of presses unsigned int time_window = 5; // Default 3600 seconds in an hour -unsigned long long_interval = 604800; // Default 31557600 seconds in a year -unsigned int hb_interval = 3600; // Default 86400 seconds in a day -unsigned long test_interval = 86400; // Default 2592000 seconds in a month +unsigned long long_interval = 31557600; // Default 31557600 seconds in a year +unsigned int hb_interval = 43200; // Default 86400 seconds in a day +unsigned long test_interval = 2592000; // Default 2592000 seconds in a month time_t next_stest; time_t next_ltest;