Ag demo with soil moisture

Dependencies:   DOGS102 ISL29011 MMA845x MPL3115A2 NCP5623B libmDot mbed-rtos mbed-src

Fork of MTDOT-EVBDemo-DRH by Dave Heitzman

Revision:
4:51d7c24bbf91
Parent:
3:68e974f5f532
Child:
5:5a794cedd728
--- a/main.cpp	Wed Jul 15 14:20:33 2015 +0000
+++ b/main.cpp	Thu Aug 20 18:34:53 2015 +0000
@@ -99,9 +99,9 @@
 /* **** replace these values with the proper public or private network settings ****
  * config_network_nameand config_network_pass are for private networks.
  */
-static std::string config_network_name = "TAB-CubeNet";
-static std::string config_network_pass = "1nt3gral";
-static uint8_t config_frequency_sub_band = 5;
+static std::string config_network_name = "Escalation";
+static std::string config_network_pass = "Escalation";
+static uint8_t config_frequency_sub_band = 3;
 
 /*  config_app_id and config_app_key are for public networks.
 static uint8_t app_id[8] = {0x00,0x01,0x02,0x03,0x0A,0x0B,0x0C,0x0D};
@@ -512,14 +512,15 @@
             converts.f_s = baro_data._temp;		// temperature is signed 12 bit
             mdot_data.push_back(converts.t_u[1]);
             mdot_data.push_back(converts.t_u[0]);
-
-            if ((mdot_ret = mdot_radio->send(mdot_data)) != mDot::MDOT_OK) {
+			
+//            if ((mdot_ret = mdot_radio->send(mdot_data)) != mDot::MDOT_OK) {
+            if ((mdot_ret = mdot_radio->send("{\"light\":{\"lux\":\"23.22\"}}")) != mDot::MDOT_OK) {
                 log_error(mdot_radio, "failed to send", mdot_ret);
             } else {
                 printf("successfully sent data to gateway\r\n");
             }
         }
-    } while(!exit_program && (i < 65000));
+    } while(!exit_program);
 
     evbBaro->triggerOneShot();