This commit is contained in:
Volodymyr Shymanskyy
2018-03-14 22:23:15 +02:00
parent a43e73f215
commit 8255673424
6 changed files with 40 additions and 19 deletions

View File

@@ -68,6 +68,7 @@ public:
public:
virtual int connect(const char *host, uint16_t port) {
stop();
TINY_GSM_YIELD();
rx.clear();
sock_connected = at->modemConnect(host, port, mux);
@@ -91,6 +92,7 @@ public:
at->sendAT(GF("+TCPCLOSE="), mux);
sock_connected = false;
at->waitResponse();
rx.clear();
}
virtual size_t write(const uint8_t *buf, size_t size) {
@@ -242,6 +244,10 @@ public:
return res;
}
bool hasSSL() {
return false;
}
/*
* Power functions
*/