Browse Source

Correct SSL on XBee

v_master
Sara Damiano 5 years ago
parent
commit
98bee318ad
2 changed files with 3 additions and 3 deletions
  1. +1
    -1
      src/TinyGsmClientSIM800.h
  2. +2
    -2
      src/TinyGsmClientXBee.h

+ 1
- 1
src/TinyGsmClientSIM800.h View File

@ -768,7 +768,7 @@ protected:
// ^^ Confirmed number of data bytes to be read, which may be less than requested.
// 0 indicates that no data can be read.
if (len_confirmed < len_requested) {
DBG(len_requested - len_confirmed, "fewer bytes confirmed than requested!");
DBG("WARNING:", len_requested - len_confirmed, "fewer bytes confirmed readable than requested!");
}
sockets[mux]->sock_available = len_confirmed;


+ 2
- 2
src/TinyGsmClientXBee.h View File

@ -109,7 +109,7 @@ public:
virtual int connect(IPAddress ip, 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(ip, port, mux, timeout_s);
sock_connected = at->modemConnect(ip, port, mux, false, timeout_s);
return sock_connected;
}
virtual int connect(IPAddress ip, uint16_t port) {
@ -247,7 +247,7 @@ public:
virtual int connect(IPAddress ip, 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(ip, port, mux, timeout_s);
sock_connected = at->modemConnect(ip, port, mux, true, timeout_s);
return sock_connected;
}
};


Loading…
Cancel
Save