Analogue soil moisture reader - simple

Dependencies:   libmDot-mbed5

Files at this revision

API Documentation at this revision

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
--- 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);
     }