vshymanskyy / TinyGSM

A small Arduino library for GSM modules, that just works
GNU Lesser General Public License v3.0
1.93k stars 715 forks source link

TinyGsmClientSequansMonarch.h: use data mode #530

Closed ffontaine closed 3 years ago

ffontaine commented 3 years ago

Use data mode instead of text mode to be able to send any content such as raw binary. This will allow us to use TinyGSM with ArduinoBearSSL and ArduinoMqtt.

It should be noted that for an unclear reason GSM_NL must be set to '\n' instead of '\r\n' to avoid "CME ERROR: operation not supported" in this mode with the Monarch GMS01Q.

Signed-off-by: Fabrice Fontaine fabrice.fontaine@orange.com

SRGDamia1 commented 3 years ago

Is this true for all of the Monarch modules? I had a VZM20Q, but I somehow fried it.

ffontaine commented 3 years ago

I only have a single Monarch module so unfortunately I can't tell if this is a "bug" affecting all Monarch modules or only the version that I'm using on GMS01Q. If you want, I could remove this change from this PR. I'll try to find how to update my module or get another one.

ffontaine commented 3 years ago

FYI, I was able to update the version of my GMS01Q from 5.2.0.3 to 5.5.1.0 and I can confirm that this "bug" is still present.

ffontaine commented 3 years ago

Do you have additional comments or suggestion on this PR?

SRGDamia1 commented 3 years ago

No, sorry, I just didn't get to it.