From c1d6abaff7562d9930fdb1c4d7056952da45c454 Mon Sep 17 00:00:00 2001 From: Francesco Stefanni Date: Wed, 7 Apr 2021 11:24:39 +0200 Subject: [PATCH] Supported SNI (fix by kyriazis) --- src/TinyGsmClientSIM7000.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/TinyGsmClientSIM7000.h b/src/TinyGsmClientSIM7000.h index 86a49ad..fadaedb 100644 --- a/src/TinyGsmClientSIM7000.h +++ b/src/TinyGsmClientSIM7000.h @@ -593,6 +593,9 @@ class TinyGsmSim7000 : public TinyGsmModem, sendAT(GF("+CASSLCFG="), mux, ',', GF("protocol,0")); waitResponse(); + sendAT(GF("+CSSLCFG=\"sni\","), mux, ',', GF("\""), host, GF("\"")); + waitResponse(); + sendAT(GF("+CAOPEN="), mux, ',', GF("\""), host, GF("\","), port); if (waitResponse(timeout_ms, GF(GSM_NL "+CAOPEN:")) != 1) { return 0; }