Browse Source

Update TinyGsmClientSIM800.h

Set default alphabet for sendSMS
v_master
hubaksis 7 years ago
committed by GitHub
parent
commit
e9107da01a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      src/TinyGsmClientSIM800.h

+ 3
- 0
src/TinyGsmClientSIM800.h 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;


Loading…
Cancel
Save