Rev 1.0 4/26/2016 Paul Jaeger - Multitech, Brian Huey - Sprint Changed post interval to 2000ms added temp, analoguv and pressure to http post added alias: TEMP ANALOG-UV PRESSURE concatenated http post, to post all within the same routine and check for error after the post confirmed that data is published to Exosite

Dependencies:   MbedJSONValue mbed mtsas

Fork of UUU_MultiTech_Dragonfly_Sprint by Paul Jaeger

Revision:
2:955a63247721
Parent:
1:a049d113e250
Child:
3:f6bceb9e5e1a
diff -r a049d113e250 -r 955a63247721 main.cpp
--- a/main.cpp	Thu Sep 24 18:33:02 2015 +0000
+++ b/main.cpp	Thu Sep 24 19:19:11 2015 +0000
@@ -56,12 +56,10 @@
 Cellular* radio;
 
 // APN associated with SIM card
-//static const std::string apn = "";
-static const std::string apn = "b2b.tmobile.com";
+static const std::string apn = "";
 
 // Phone number to send SMS messages to
-//static const std::string phone_number = "1xxxxxxxxxx";
-static const std::string phone_number = "19524062053";
+static const std::string phone_number = "1xxxxxxxxxx";
 
 // handle to MEMs board object
 static X_NUCLEO_IKS01A1* mems = X_NUCLEO_IKS01A1::Instance();
@@ -70,7 +68,7 @@
 AnalogIn moisture_sensor(A0);
 
 // Button
-InterruptIn button(A1);
+InterruptIn button(D8);
 bool button_pressed = false;
 
 // variables for sensor data
@@ -175,7 +173,7 @@
                 sms_json["gyro_mdps"]["y"] = gyro_mdps[1];
                 sms_json["gyro_mdps"]["z"] = gyro_mdps[2];
                 
-                sms_str = "SENSOR DATA: ";
+                sms_str = "SENSOR DATA:\n";
                 sms_str += sms_json.serialize();
                 
                 logDebug("sending SMS to %s:\r\n%s", phone_number.c_str(), sms_str.c_str());