ostaquet / Arduino-SIM800L-driver

Arduino driver for GSM/GPRS module SIMCom SIM800L to make HTTP/S connections with GET and POST methods
MIT License
133 stars 61 forks source link

Check the module version before using the SSL connectivity #11

Closed ostaquet closed 4 years ago

ostaquet commented 4 years ago

According to some tests and issues (#10 and https://github.com/vshymanskyy/TinyGSM/issues/29), the version 13.08 doesn't support SSL connectivity.

In order to avoid troubles in the future, add the check before trying to establish a communication.

Seems that SSL feature is available only since v14 of the module.

andrewstillie commented 4 years ago

I am using a TTGO-Tcall module. I am using the Arduino ecosystem to write my code with TinyGsm TinyGsmClient HttpClient

How can I request the SIM800 version number?

ostaquet commented 4 years ago

You can install the last version of the library and run the BasicTest example ;-)

andrewstillie commented 4 years ago

Thank You - I can see I have SIM800 R14.18 How do I activate SSL for my POST to AWS API Gateway?

ostaquet commented 4 years ago

Did you already try the examples provided with the library? (see HTTPS_POST_HardwareSerial)

You may encounter some security issues as the SIM800L is not so recent and doesn't support the latest SSL security layers (like some 605 or 606 errors as documented in the SSL application notes)

ostaquet commented 4 years ago

Issue fixed with release 1.11.0