Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: MbedJSONValue mbed mtsas
Fork of UUU_MultiTech_Dragonfly_Sprint_SF by
Diff: main.cpp
- Revision:
- 2:955a63247721
- Parent:
- 1:a049d113e250
- Child:
- 3:f6bceb9e5e1a
--- 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());
