mirror of
https://github.com/vshymanskyy/TinyGSM.git
synced 2026-05-15 04:06:10 +00:00
protected template destructors
Signed-off-by: Sara Damiano <sdamiano@stroudcenter.org>
This commit is contained in:
@@ -48,7 +48,7 @@ class TinyGsmBattery {
|
||||
inline modemType& thisModem() {
|
||||
return static_cast<modemType&>(*this);
|
||||
}
|
||||
|
||||
~TinyGsmBattery() {}
|
||||
|
||||
/* =========================================== */
|
||||
/* =========================================== */
|
||||
|
||||
@@ -47,6 +47,7 @@ class TinyGsmBluetooth {
|
||||
inline modemType& thisModem() {
|
||||
return static_cast<modemType&>(*this);
|
||||
}
|
||||
~TinyGsmBluetooth() {}
|
||||
|
||||
/* =========================================== */
|
||||
/* =========================================== */
|
||||
|
||||
@@ -47,6 +47,7 @@ class TinyGsmCalling {
|
||||
inline modemType& thisModem() {
|
||||
return static_cast<modemType&>(*this);
|
||||
}
|
||||
~TinyGsmCalling() {}
|
||||
|
||||
/* =========================================== */
|
||||
/* =========================================== */
|
||||
|
||||
@@ -60,6 +60,7 @@ class TinyGsmSim70xx : public TinyGsmModem<TinyGsmSim70xx<modemType>>,
|
||||
inline modemType& thisModem() {
|
||||
return static_cast<modemType&>(*this);
|
||||
}
|
||||
~TinyGsmSim70xx() {}
|
||||
|
||||
/*
|
||||
* Constructor
|
||||
@@ -86,6 +87,7 @@ class TinyGsmSim70xx : public TinyGsmModem<TinyGsmSim70xx<modemType>>,
|
||||
res2.trim();
|
||||
|
||||
name = res2;
|
||||
DBG("### Modem:", name);
|
||||
return name;
|
||||
}
|
||||
|
||||
@@ -381,7 +383,7 @@ class TinyGsmSim70xx : public TinyGsmModem<TinyGsmSim70xx<modemType>>,
|
||||
/*
|
||||
* Time functions
|
||||
*/
|
||||
// Can follow CCLK as per template
|
||||
// Can follow the standard CCLK function in the template
|
||||
|
||||
/*
|
||||
* NTP server functions
|
||||
|
||||
@@ -267,6 +267,7 @@ class TinyGsmSim7600 : public TinyGsmModem<TinyGsmSim7600>,
|
||||
|
||||
public:
|
||||
String getNetworkModes() {
|
||||
// Get the help string, not the setting value
|
||||
sendAT(GF("+CNMP=?"));
|
||||
if (waitResponse(GF(AT_NL "+CNMP:")) != 1) { return ""; }
|
||||
String res = stream.readStringUntil('\n');
|
||||
@@ -489,13 +490,15 @@ class TinyGsmSim7600 : public TinyGsmModem<TinyGsmSim7600>,
|
||||
int imin = 0;
|
||||
float secondWithSS = 0;
|
||||
|
||||
streamSkipUntil(','); // GPS satellite valid numbers
|
||||
streamSkipUntil(','); // GLONASS satellite valid numbers
|
||||
streamSkipUntil(','); // BEIDOU satellite valid numbers
|
||||
ilat = streamGetFloatBefore(','); // Latitude in ddmm.mmmmmm
|
||||
north = stream.readStringUntil(',').charAt(0); // N/S Indicator, N=north or S=south
|
||||
ilon = streamGetFloatBefore(','); // Longitude in ddmm.mmmmmm
|
||||
east = stream.readStringUntil(',').charAt(0); // E/W Indicator, E=east or W=west
|
||||
streamSkipUntil(','); // GPS satellite valid numbers
|
||||
streamSkipUntil(','); // GLONASS satellite valid numbers
|
||||
streamSkipUntil(','); // BEIDOU satellite valid numbers
|
||||
ilat = streamGetFloatBefore(','); // Latitude in ddmm.mmmmmm
|
||||
north = stream.readStringUntil(',').charAt(
|
||||
0); // N/S Indicator, N=north or S=south
|
||||
ilon = streamGetFloatBefore(','); // Longitude in ddmm.mmmmmm
|
||||
east = stream.readStringUntil(',').charAt(
|
||||
0); // E/W Indicator, E=east or W=west
|
||||
|
||||
// Date. Output format is ddmmyy
|
||||
iday = streamGetIntLength(2); // Two digit day
|
||||
|
||||
@@ -85,6 +85,7 @@ class TinyGsmGPRS {
|
||||
inline modemType& thisModem() {
|
||||
return static_cast<modemType&>(*this);
|
||||
}
|
||||
~TinyGsmGPRS() {}
|
||||
|
||||
/* =========================================== */
|
||||
/* =========================================== */
|
||||
|
||||
@@ -66,7 +66,7 @@ class TinyGsmGPS {
|
||||
inline modemType& thisModem() {
|
||||
return static_cast<modemType&>(*this);
|
||||
}
|
||||
|
||||
~TinyGsmGPS() {}
|
||||
|
||||
/* =========================================== */
|
||||
/* =========================================== */
|
||||
|
||||
@@ -58,6 +58,7 @@ class TinyGsmGSMLocation {
|
||||
inline modemType& thisModem() {
|
||||
return static_cast<modemType&>(*this);
|
||||
}
|
||||
~TinyGsmGSMLocation() {}
|
||||
|
||||
/* =========================================== */
|
||||
/* =========================================== */
|
||||
|
||||
@@ -172,6 +172,7 @@ class TinyGsmModem {
|
||||
inline modemType& thisModem() {
|
||||
return static_cast<modemType&>(*this);
|
||||
}
|
||||
~TinyGsmModem() {}
|
||||
|
||||
/*
|
||||
Utilities
|
||||
|
||||
@@ -57,6 +57,7 @@ class TinyGsmNTP {
|
||||
inline modemType& thisModem() {
|
||||
return static_cast<modemType&>(*this);
|
||||
}
|
||||
~TinyGsmNTP() {}
|
||||
|
||||
/* =========================================== */
|
||||
/* =========================================== */
|
||||
|
||||
@@ -44,6 +44,7 @@ class TinyGsmSMS {
|
||||
inline modemType& thisModem() {
|
||||
return static_cast<modemType&>(*this);
|
||||
}
|
||||
~TinyGsmSMS() {}
|
||||
|
||||
/*
|
||||
* Utilities
|
||||
|
||||
@@ -42,6 +42,7 @@ class TinyGsmSSL {
|
||||
inline modemType& thisModem() {
|
||||
return static_cast<modemType&>(*this);
|
||||
}
|
||||
~TinyGsmSSL() {}
|
||||
|
||||
/* =========================================== */
|
||||
/* =========================================== */
|
||||
|
||||
@@ -66,6 +66,7 @@ class TinyGsmTCP {
|
||||
inline modemType& thisModem() {
|
||||
return static_cast<modemType&>(*this);
|
||||
}
|
||||
~TinyGsmTCP() {}
|
||||
|
||||
/*
|
||||
* Inner Client
|
||||
|
||||
@@ -38,6 +38,7 @@ class TinyGsmTemperature {
|
||||
inline modemType& thisModem() {
|
||||
return static_cast<modemType&>(*this);
|
||||
}
|
||||
~TinyGsmTemperature() {}
|
||||
|
||||
/* =========================================== */
|
||||
/* =========================================== */
|
||||
|
||||
@@ -50,6 +50,7 @@ class TinyGsmTime {
|
||||
inline modemType& thisModem() {
|
||||
return static_cast<modemType&>(*this);
|
||||
}
|
||||
~TinyGsmTime() {}
|
||||
|
||||
/* =========================================== */
|
||||
/* =========================================== */
|
||||
|
||||
@@ -41,6 +41,7 @@ class TinyGsmWifi {
|
||||
inline modemType& thisModem() {
|
||||
return static_cast<modemType&>(*this);
|
||||
}
|
||||
~TinyGsmWifi() {}
|
||||
|
||||
/* =========================================== */
|
||||
/* =========================================== */
|
||||
|
||||
Reference in New Issue
Block a user