|
@ -658,6 +658,9 @@ public: |
|
|
bool sendSMS(const String& number, const String& text) { |
|
|
bool sendSMS(const String& number, const String& text) { |
|
|
sendAT(GF("+CMGF=1")); |
|
|
sendAT(GF("+CMGF=1")); |
|
|
waitResponse(); |
|
|
waitResponse(); |
|
|
|
|
|
//Set GSM 7 bit default alphabet (3GPP TS 23.038) |
|
|
|
|
|
sendAT(GF("+CSCS=\"GSM\"")); |
|
|
|
|
|
waitResponse(); |
|
|
sendAT(GF("+CMGS=\""), number, GF("\"")); |
|
|
sendAT(GF("+CMGS=\""), number, GF("\"")); |
|
|
if (waitResponse(GF(">")) != 1) { |
|
|
if (waitResponse(GF(">")) != 1) { |
|
|
return false; |
|
|
return false; |
|
|