Skip to content
This repository has been archived by the owner on Sep 30, 2021. It is now read-only.

Possible solution to SMS encoding problem #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion src/GSM3SoftSerial.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down Expand Up @@ -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);
Expand Down