mirror of
https://github.com/vshymanskyy/TinyGSM.git
synced 2026-05-15 04:06:10 +00:00
Another note change
Signed-off-by: Sara Damiano <sdamiano@stroudcenter.org>
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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"));
|
||||
|
||||
@@ -13,7 +13,6 @@
|
||||
|
||||
#define TINY_GSM_MODEM_HAS_SSL
|
||||
|
||||
|
||||
template <class modemType>
|
||||
class TinyGsmSSL {
|
||||
/* =========================================== */
|
||||
|
||||
@@ -46,6 +46,10 @@ class TinyGsmTemperature {
|
||||
* Define the default function implementations
|
||||
*/
|
||||
|
||||
/*
|
||||
* Temperature functions
|
||||
*/
|
||||
|
||||
float getTemperatureImpl() TINY_GSM_ATTR_NOT_IMPLEMENTED;
|
||||
};
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user