Browse Source

Supported SNI (fix by kyriazis)

dependabot/github_actions/actions/checkout-4
Francesco Stefanni 3 years ago
parent
commit
c1d6abaff7
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      src/TinyGsmClientSIM7000.h

+ 3
- 0
src/TinyGsmClientSIM7000.h View File

@ -593,6 +593,9 @@ class TinyGsmSim7000 : public TinyGsmModem<TinyGsmSim7000>,
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; }


Loading…
Cancel
Save