Add function stubs
This commit is contained in:
@@ -107,7 +107,6 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
virtual int available() {
|
virtual int available() {
|
||||||
//DBG("available?");
|
|
||||||
TINY_GSM_YIELD();
|
TINY_GSM_YIELD();
|
||||||
if (!rx.size() && sock_connected) {
|
if (!rx.size() && sock_connected) {
|
||||||
at->maintain();
|
at->maintain();
|
||||||
@@ -116,7 +115,6 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
virtual int read(uint8_t *buf, size_t size) {
|
virtual int read(uint8_t *buf, size_t size) {
|
||||||
//DBG("read:", size);
|
|
||||||
TINY_GSM_YIELD();
|
TINY_GSM_YIELD();
|
||||||
size_t cnt = 0;
|
size_t cnt = 0;
|
||||||
while (cnt < size) {
|
while (cnt < size) {
|
||||||
@@ -154,6 +152,13 @@ public:
|
|||||||
return sock_connected;
|
return sock_connected;
|
||||||
}
|
}
|
||||||
virtual operator bool() { return connected(); }
|
virtual operator bool() { return connected(); }
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Extended API
|
||||||
|
*/
|
||||||
|
|
||||||
|
String remoteIP() TINY_GSM_ATTR_NOT_IMPLEMENTED;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
TinyGsm* at;
|
TinyGsm* at;
|
||||||
uint8_t mux;
|
uint8_t mux;
|
||||||
@@ -361,15 +366,6 @@ public:
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
sendAT(GF("+CIFSR"));
|
|
||||||
String data;
|
|
||||||
if (waitResponse(10000L, data) != 1) {
|
|
||||||
data.replace(GSM_NL, "");
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -444,6 +440,10 @@ public:
|
|||||||
* Battery functions
|
* Battery functions
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
uint16_t getBattVoltage() TINY_GSM_ATTR_NOT_AVAILABLE;
|
||||||
|
|
||||||
|
int getBattPercent() TINY_GSM_ATTR_NOT_AVAILABLE;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
bool modemConnect(const char* host, uint16_t port, uint8_t* mux) {
|
bool modemConnect(const char* host, uint16_t port, uint8_t* mux) {
|
||||||
|
Reference in New Issue
Block a user