Another note change

Signed-off-by: Sara Damiano <sdamiano@stroudcenter.org>
This commit is contained in:
Sara Damiano
2024-05-21 16:23:55 -04:00
parent d8b6d3a801
commit 9a7c313671
5 changed files with 14 additions and 8 deletions

View File

@@ -83,11 +83,10 @@ class TinyGsmNTP {
thisModem().sendAT(GF("+CNTP"));
if (thisModem().waitResponse(10000L, GF("+CNTP:"))) {
String result = thisModem().stream.readStringUntil('\n');
// Check for ',' in case the module appends the time next to the return code. Eg: +CNTP: <code>[,<time>]
// Check for ',' in case the module appends the time next to the return
// code. Eg: +CNTP: <code>[,<time>]
int index = result.indexOf(',');
if(index > 0) {
result.remove(index);
}
if (index > 0) { result.remove(index); }
result.trim();
if (TinyGsmIsValidNumber(result)) { return result.toInt(); }
} else {

View File

@@ -123,6 +123,10 @@ class TinyGsmSMS {
* Define the default function implementations
*/
/*
* Messaging functions
*/
String sendUSSDImpl(const String& code) {
// Set preferred message format to text mode
thisModem().sendAT(GF("+CMGF=1"));

View File

@@ -13,7 +13,6 @@
#define TINY_GSM_MODEM_HAS_SSL
template <class modemType>
class TinyGsmSSL {
/* =========================================== */

View File

@@ -46,6 +46,10 @@ class TinyGsmTemperature {
* Define the default function implementations
*/
/*
* Temperature functions
*/
float getTemperatureImpl() TINY_GSM_ATTR_NOT_IMPLEMENTED;
};

View File

@@ -34,10 +34,10 @@ class TinyGsmTime {
return thisModem().getNetworkTimeImpl(year, month, day, hour, minute,
second, timezone);
}
bool getNetworkUTCTime(int* year, int* month, int* day, int* hour, int* minute,
int* second, float* timezone) {
bool getNetworkUTCTime(int* year, int* month, int* day, int* hour,
int* minute, int* second, float* timezone) {
return thisModem().getNetworkUTCTimeImpl(year, month, day, hour, minute,
second, timezone);
second, timezone);
}
/*