Brendan Kelly
/
mDot_soil_moisture_ABPA
Analogue soil moisture reader - simple
Revision 2:d8858f9fc425, committed 2017-11-06
- Comitter:
- kellybs1
- Date:
- Mon Nov 06 03:56:17 2017 +0000
- Parent:
- 1:15442a59c47f
- Commit message:
- initial
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 15442a59c47f -r d8858f9fc425 main.cpp --- a/main.cpp Wed Nov 01 03:51:21 2017 +0000 +++ b/main.cpp Mon Nov 06 03:56:17 2017 +0000 @@ -25,11 +25,11 @@ /* */ //device address -static uint8_t network_address[] = { 0x07, 0x47, 0x2b, 0xd0 }; +static uint8_t network_address[] = { }; //network session key -static uint8_t network_session_key[] = { 0xd8, 0x0b, 0x02, 0xd3, 0xf9, 0x06, 0x7f, 0x85, 0x75, 0xa6, 0xbe, 0x82, 0x23, 0x6e, 0xbd, 0x77 }; +static uint8_t network_session_key[] = { }; //application sesssion or data session key -static uint8_t data_session_key[] = { 0x86, 0x28, 0x35, 0x20, 0xa3, 0xc1, 0x16, 0x99, 0xdd, 0xf0, 0x3e, 0xa1, 0xa1, 0x42, 0x5f, 0x04 }; +static uint8_t data_session_key[] = { }; static uint8_t frequency_sub_band = 2; //VFI static bool public_network = true; //enable receipt of ackknowledge packets 0 = No, 1 = Yes @@ -155,7 +155,7 @@ send_data(data); // go to sleep and wake up automatically sleep_time seconds later - uint32_t sleep_time = 30; + uint32_t sleep_time = 60; //false is "don't deep sleep" - mDot doesn't do that dot->sleep(sleep_time, mDot::RTC_ALARM, false); }