uses pushing box to publish to google spreadsheets with a state machine instead of a while loop

Dependents:   DCS_FINAL_CODE

Fork of GSM_PUSHING_BOX_STATE_MACHINE by DCS_TEAM

Revision:
14:56a2c371ce18
Parent:
13:9ac5ff131214
Child:
15:19ae032e2e54
diff -r 9ac5ff131214 -r 56a2c371ce18 GSMLibrary.cpp
--- a/GSMLibrary.cpp	Fri Mar 06 01:11:58 2015 +0000
+++ b/GSMLibrary.cpp	Fri Mar 06 01:19:34 2015 +0000
@@ -13,7 +13,7 @@
 #define AT_CMGF "AT+CMGF=1"
 #define RECEIVER_PHONE_NUMBER "\"+18014722842\""
 #define AT_CMGS "AT+CMGS=" RECEIVER_PHONE_NUMBER 
-#define MESSAGE_BODY "hi joseph"
+#define MESSAGE_BODY "how did we get 31?"
 
 //Definition for at repsonses
 //Please notice that after ":" the gsm will usually send aditional information
@@ -21,7 +21,7 @@
 #define AT_CSQ_RESPONSE "+CSQ:" //+CSQ: <arg1>,<arg2> where <arg1> is signal strength arg1 = 0-30 where a number below 10 means low signal strength and 99 is not knwn or detectable signal and arg2 is bit error rate form 0-7, 99 will represent error 
 #define AT_CREG_RESPONSE "+CREG:"//+CREG: <arg1>,<arg2> where <arg1> = 0-2(see AT command descriptions), <arg2> =  0-5, 0 not registered to nework and not looking for one. 1 is conected to network, 2 is not conected but searching
 #define AT_CMGF_RESPONSE "OK"
-#define AT_CMGS_RESPONSE "> "  //Message is written aftersymbol
+#define AT_CMGS_RESPONSE ">"  //Message is written aftersymbol
 #define AT_SENDSMS_RESPONSE "+CMGS:" // +CMGS: <id> this will include the message id. CMGS ERROR for error and 
 #define AT_SUCCESS_REPSONSE "OK"