pythings / Drivers

Some drivers for MicroPython
Apache License 2.0
63 stars 22 forks source link

Improve SSL capability check #6

Closed amotl closed 3 years ago

amotl commented 4 years ago

Instead of relying on the modem revision (R13.06 vs. R14.18), we might want to use the AT+CIPSSL=? command, see also [1].

When the modem is not capable of SSL, it will respond with ERROR. Otherwise, it will respond with +CIPSSL: (0-1).

The TinyGSM reference implementation can be found at [2].

[1] https://community.hiveeyes.org/t/unlocking-and-improving-the-pythings-sim800-gprs-module-for-micropython/2978/34 [2] TinyGsmClientSIM800.h#L242-L252

Alebat commented 3 years ago

Line 380: ssl_available = self.modem_info >= 'SIM800 R14.00' here i get false with rev R14.18