protected template destructors

Signed-off-by: Sara Damiano <sdamiano@stroudcenter.org>
This commit is contained in:
Sara Damiano
2024-05-21 15:49:05 -04:00
parent d9608f94b4
commit 24504071dd
16 changed files with 27 additions and 10 deletions

View File

@@ -48,7 +48,7 @@ class TinyGsmBattery {
inline modemType& thisModem() {
return static_cast<modemType&>(*this);
}
~TinyGsmBattery() {}
/* =========================================== */
/* =========================================== */

View File

@@ -47,6 +47,7 @@ class TinyGsmBluetooth {
inline modemType& thisModem() {
return static_cast<modemType&>(*this);
}
~TinyGsmBluetooth() {}
/* =========================================== */
/* =========================================== */

View File

@@ -47,6 +47,7 @@ class TinyGsmCalling {
inline modemType& thisModem() {
return static_cast<modemType&>(*this);
}
~TinyGsmCalling() {}
/* =========================================== */
/* =========================================== */

View File

@@ -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

View File

@@ -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

View File

@@ -85,6 +85,7 @@ class TinyGsmGPRS {
inline modemType& thisModem() {
return static_cast<modemType&>(*this);
}
~TinyGsmGPRS() {}
/* =========================================== */
/* =========================================== */

View File

@@ -66,7 +66,7 @@ class TinyGsmGPS {
inline modemType& thisModem() {
return static_cast<modemType&>(*this);
}
~TinyGsmGPS() {}
/* =========================================== */
/* =========================================== */

View File

@@ -58,6 +58,7 @@ class TinyGsmGSMLocation {
inline modemType& thisModem() {
return static_cast<modemType&>(*this);
}
~TinyGsmGSMLocation() {}
/* =========================================== */
/* =========================================== */

View File

@@ -172,6 +172,7 @@ class TinyGsmModem {
inline modemType& thisModem() {
return static_cast<modemType&>(*this);
}
~TinyGsmModem() {}
/*
Utilities

View File

@@ -57,6 +57,7 @@ class TinyGsmNTP {
inline modemType& thisModem() {
return static_cast<modemType&>(*this);
}
~TinyGsmNTP() {}
/* =========================================== */
/* =========================================== */

View File

@@ -44,6 +44,7 @@ class TinyGsmSMS {
inline modemType& thisModem() {
return static_cast<modemType&>(*this);
}
~TinyGsmSMS() {}
/*
* Utilities

View File

@@ -42,6 +42,7 @@ class TinyGsmSSL {
inline modemType& thisModem() {
return static_cast<modemType&>(*this);
}
~TinyGsmSSL() {}
/* =========================================== */
/* =========================================== */

View File

@@ -66,6 +66,7 @@ class TinyGsmTCP {
inline modemType& thisModem() {
return static_cast<modemType&>(*this);
}
~TinyGsmTCP() {}
/*
* Inner Client

View File

@@ -38,6 +38,7 @@ class TinyGsmTemperature {
inline modemType& thisModem() {
return static_cast<modemType&>(*this);
}
~TinyGsmTemperature() {}
/* =========================================== */
/* =========================================== */

View File

@@ -50,6 +50,7 @@ class TinyGsmTime {
inline modemType& thisModem() {
return static_cast<modemType&>(*this);
}
~TinyGsmTime() {}
/* =========================================== */
/* =========================================== */

View File

@@ -41,6 +41,7 @@ class TinyGsmWifi {
inline modemType& thisModem() {
return static_cast<modemType&>(*this);
}
~TinyGsmWifi() {}
/* =========================================== */
/* =========================================== */