uses pushing box to publish to google spreadsheets with a state machine instead of a while loop
Fork of GSM_PUSHING_BOX_STATE_MACHINE by
Diff: GSMLibrary.cpp
- Revision:
- 25:9de265c5bb28
- Parent:
- 24:7d2ff444d6d8
- Child:
- 26:838a9d26e8e9
--- a/GSMLibrary.cpp Sat Apr 11 23:21:46 2015 +0000 +++ b/GSMLibrary.cpp Sun Apr 12 01:05:55 2015 +0000 @@ -99,17 +99,17 @@ strcat(gsm_msg, num); snprintf(num, NUM_SIZE, "%f,", S); strcat(gsm_msg, num); - snprintf(num, NUM_SIZE, "%f;\n", Sref); + snprintf(num, NUM_SIZE, "%f\n", Sref); strcat(gsm_msg, num); //Concatenate gps data strcat(gsm_msg, BEGIN_GPS_DATA); if (ns != NULL) //If there is a gps fix, ns will be set { - snprintf(num, NUM_SIZE, ",%.4f%c,%.4f%c;", lat, ns, lon, we); + snprintf(num, NUM_SIZE, ",%.4f%c,%.4f%c\n", lat, ns, lon, we); strcat(gsm_msg, num); } - else strcat(gsm_msg, ",NONE;"); + else strcat(gsm_msg, ",NONE\n"); send = true; //Mark that we are currently sending a message strcat(gsm_msg, SMS_END_CHAR); //Add SMS end char