Update TinyGsmClientSIM800.h

Set default alphabet for sendSMS
This commit is contained in:
hubaksis
2018-02-05 13:08:03 +13:00
committed by GitHub
parent ba859869e2
commit e9107da01a

View File

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