From 4d917a405e8ce01df3a1a18ca2ffc6af7d7f24cc Mon Sep 17 00:00:00 2001 From: Abhishek Agarwal Date: Thu, 1 Oct 2020 15:37:01 -0700 Subject: [PATCH] SMS encoding problem --- src/GSM3SoftSerial.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/GSM3SoftSerial.cpp b/src/GSM3SoftSerial.cpp index ef87060..66bbad3 100644 --- a/src/GSM3SoftSerial.cpp +++ b/src/GSM3SoftSerial.cpp @@ -8,7 +8,7 @@ This file is part of the GSM3 communications library for Arduino -- TCP/IP connections -- HTTP basic clients -This library has been developed by Telefónica Digital - PDI - +This library has been developed by Telef�nica Digital - PDI - - Physical Internet Lab, as part as its collaboration with Arduino and the Open Hardware Community. @@ -187,12 +187,19 @@ size_t GSM3SoftSerial::write(uint8_t c) return 0; // Characters to be escaped under XON/XOFF control with Quectel + if(c==0x5f) + { + this->finalWrite(0x77); + return this->finalWrite(0x8a); + } + if(c==0x11) { this->finalWrite(0x77); return this->finalWrite(0xEE); } + if(c==0x13) { this->finalWrite(0x77);