|
@ -290,6 +290,8 @@ public: |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
bool sendSMS(const String& number, const String& text) { |
|
|
bool sendSMS(const String& number, const String& text) { |
|
|
|
|
|
sendAT(GF("+CSCS=\"gsm\"")); |
|
|
|
|
|
waitResponse(); |
|
|
sendAT(GF("+CMGF=1")); |
|
|
sendAT(GF("+CMGF=1")); |
|
|
waitResponse(); |
|
|
waitResponse(); |
|
|
sendAT(GF("+CMGS=\""), number, GF("\"")); |
|
|
sendAT(GF("+CMGS=\""), number, GF("\"")); |
|
|