Correct non-ssl connection

This commit is contained in:
Sara Damiano
2019-05-20 10:37:30 -04:00
parent ff4fa1e042
commit 2e03cdeaba
11 changed files with 15 additions and 14 deletions

View File

@@ -75,7 +75,7 @@ public:
stop();
TINY_GSM_YIELD();
rx.clear();
sock_connected = at->modemConnect(host, port, mux, timeout_s);
sock_connected = at->modemConnect(host, port, mux, false, timeout_s);
return sock_connected;
}

View File

@@ -72,7 +72,7 @@ public:
stop();
TINY_GSM_YIELD();
rx.clear();
sock_connected = at->modemConnect(host, port, mux, timeout_s);
sock_connected = at->modemConnect(host, port, mux, false, timeout_s);
return sock_connected;
}

View File

@@ -75,7 +75,7 @@ public:
stop();
TINY_GSM_YIELD();
rx.clear();
sock_connected = at->modemConnect(host, port, mux, timeout_s);
sock_connected = at->modemConnect(host, port, mux, false, timeout_s);
return sock_connected;
}

View File

@@ -79,7 +79,7 @@ public:
stop();
TINY_GSM_YIELD();
rx.clear();
sock_connected = at->modemConnect(host, port, mux, timeout_s);
sock_connected = at->modemConnect(host, port, mux, false, timeout_s);
return sock_connected;
}

View File

@@ -80,7 +80,7 @@ public:
stop();
TINY_GSM_YIELD();
rx.clear();
sock_connected = at->modemConnect(host, port, mux, timeout_s);
sock_connected = at->modemConnect(host, port, mux, false, timeout_s);
return sock_connected;
}

View File

@@ -81,7 +81,7 @@ public:
stop();
TINY_GSM_YIELD();
rx.clear();
sock_connected = at->modemConnect(host, port, mux, timeout_s);
sock_connected = at->modemConnect(host, port, mux, false, timeout_s);
return sock_connected;
}

View File

@@ -94,7 +94,7 @@ public:
rx.clear();
uint8_t oldMux = mux;
sock_connected = at->modemConnect(host, port, &mux, timeout_s);
sock_connected = at->modemConnect(host, port, &mux, false, timeout_s);
if (mux != oldMux) {
DBG("WARNING: Mux number changed from", oldMux, "to", mux);
at->sockets[oldMux] = NULL;

View File

@@ -87,7 +87,7 @@ public:
if (sock_connected) stop();
TINY_GSM_YIELD();
rx.clear();
sock_connected = at->modemConnect(host, port, mux, timeout_s);
sock_connected = at->modemConnect(host, port, mux, false, timeout_s);
return sock_connected;
}

View File

@@ -78,7 +78,7 @@ public:
rx.clear();
uint8_t oldMux = mux;
sock_connected = at->modemConnect(host, port, &mux, timeout_s);
sock_connected = at->modemConnect(host, port, &mux, false, timeout_s);
if (mux != oldMux) {
DBG("WARNING: Mux number changed from", oldMux, "to", mux);
at->sockets[oldMux] = NULL;

View File

@@ -99,7 +99,7 @@ public:
virtual int connect(const char *host, uint16_t port, int timeout_s) {
// NOTE: Not caling stop() or yeild() here
at->streamClear(); // Empty anything in the buffer before starting
sock_connected = at->modemConnect(host, port, mux, timeout_s);
sock_connected = at->modemConnect(host, port, mux, false, timeout_s);
return sock_connected;
}
virtual int connect(const char *host, uint16_t port) {