Remove misleading secure definition
This commit is contained in:
@@ -38,7 +38,13 @@
|
|||||||
#include <TinyGsmClientSIM7000.h>
|
#include <TinyGsmClientSIM7000.h>
|
||||||
typedef TinyGsmSim7000 TinyGsm;
|
typedef TinyGsmSim7000 TinyGsm;
|
||||||
typedef TinyGsmSim7000::GsmClient TinyGsmClient;
|
typedef TinyGsmSim7000::GsmClient TinyGsmClient;
|
||||||
typedef TinyGsmSim7000::GsmClientSecure TinyGsmClientSecure;
|
// typedef TinyGsmSim7000::GsmClientSecure TinyGsmClientSecure; TODO!
|
||||||
|
|
||||||
|
#elif defined(TINY_GSM_MODEM_SIM5360) || defined(TINY_GSM_MODEM_SIM5320)
|
||||||
|
#define TINY_GSM_MODEM_HAS_GPRS
|
||||||
|
#include <TinyGsmClientSIM5360.h>
|
||||||
|
typedef TinyGsmSim5360 TinyGsm;
|
||||||
|
typedef TinyGsmSim5360::GsmClient TinyGsmClient;
|
||||||
|
|
||||||
#elif defined(TINY_GSM_MODEM_UBLOX)
|
#elif defined(TINY_GSM_MODEM_UBLOX)
|
||||||
#define TINY_GSM_MODEM_HAS_GPRS
|
#define TINY_GSM_MODEM_HAS_GPRS
|
||||||
|
@@ -120,26 +120,6 @@ private:
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
class GsmClientSecure : public GsmClient
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
GsmClientSecure() {}
|
|
||||||
|
|
||||||
GsmClientSecure(TinyGsmSim5360& modem, uint8_t mux = 1)
|
|
||||||
: GsmClient(modem, mux)
|
|
||||||
{}
|
|
||||||
|
|
||||||
public:
|
|
||||||
virtual int connect(const char *host, uint16_t port, int timeout_s) {
|
|
||||||
stop();
|
|
||||||
TINY_GSM_YIELD();
|
|
||||||
rx.clear();
|
|
||||||
sock_connected = at->modemConnect(host, port, mux, true, timeout_s);
|
|
||||||
return sock_connected;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
TinyGsmSim5360(Stream& stream)
|
TinyGsmSim5360(Stream& stream)
|
||||||
|
@@ -120,6 +120,7 @@ private:
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/*TODO!
|
||||||
class GsmClientSecure : public GsmClient
|
class GsmClientSecure : public GsmClient
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@@ -138,6 +139,7 @@ public:
|
|||||||
return sock_connected;
|
return sock_connected;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
Reference in New Issue
Block a user