Oops, fix for the urc's
Signed-off-by: Sara Damiano <sdamiano@stroudcenter.org>
This commit is contained in:
@@ -570,10 +570,10 @@ class TinyGsmM95 : public TinyGsmModem<TinyGsmM95>,
|
|||||||
}
|
}
|
||||||
data = "";
|
data = "";
|
||||||
DBG("### Closed: ", mux);
|
DBG("### Closed: ", mux);
|
||||||
} else if (data.endsWith(GF("+QNITZ:" GSM_NL))) {
|
} else if (data.endsWith(GF("+QNITZ:"))) {
|
||||||
streamSkipUntil('\n'); // URC for time sync
|
streamSkipUntil('\n'); // URC for time sync
|
||||||
data = "";
|
data = "";
|
||||||
DBG("### Network time has been updated.");
|
DBG("### Network time updated.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} while (millis() - startMillis < timeout_ms);
|
} while (millis() - startMillis < timeout_ms);
|
||||||
|
@@ -539,9 +539,9 @@ class TinyGsmMC60 : public TinyGsmModem<TinyGsmMC60>,
|
|||||||
}
|
}
|
||||||
data = "";
|
data = "";
|
||||||
DBG("### Closed: ", mux);
|
DBG("### Closed: ", mux);
|
||||||
} else if (data.endsWith(GF("+QNITZ:" GSM_NL))) {
|
} else if (data.endsWith(GF("+QNITZ:"))) {
|
||||||
streamSkipUntil('\n'); // URC for time sync
|
streamSkipUntil('\n'); // URC for time sync
|
||||||
DBG("### Network time has been updated.");
|
DBG("### Network time updated.");
|
||||||
data = "";
|
data = "";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -686,23 +686,23 @@ class TinyGsmSim7000 : public TinyGsmModem<TinyGsmSim7000>,
|
|||||||
}
|
}
|
||||||
data = "";
|
data = "";
|
||||||
DBG("### Closed: ", mux);
|
DBG("### Closed: ", mux);
|
||||||
} else if (data.endsWith(GF("*PSNWID:" GSM_NL))) {
|
} else if (data.endsWith(GF("*PSNWID:"))) {
|
||||||
streamSkipUntil('\n'); // Refresh network name by network
|
streamSkipUntil('\n'); // Refresh network name by network
|
||||||
data = "";
|
data = "";
|
||||||
DBG("### Network name has been updated.");
|
DBG("### Network name updated.");
|
||||||
} else if (data.endsWith(GF("*PSUTTZ:" GSM_NL))) {
|
} else if (data.endsWith(GF("*PSUTTZ:"))) {
|
||||||
streamSkipUntil('\n'); // Refresh time and time zone by network
|
streamSkipUntil('\n'); // Refresh time and time zone by network
|
||||||
data = "";
|
data = "";
|
||||||
DBG("### Network time and time zone have been updated.");
|
DBG("### Network time and time zone updated.");
|
||||||
} else if (data.endsWith(GF("+CTZV:" GSM_NL))) {
|
} else if (data.endsWith(GF("+CTZV:"))) {
|
||||||
streamSkipUntil('\n'); // Refresh network time zone by network
|
streamSkipUntil('\n'); // Refresh network time zone by network
|
||||||
data = "";
|
data = "";
|
||||||
DBG("### Network time zone has been updated.");
|
DBG("### Network time zone updated.");
|
||||||
} else if (data.endsWith(GF("DST:" GSM_NL))) {
|
} else if (data.endsWith(GF("DST: "))) {
|
||||||
streamSkipUntil(
|
streamSkipUntil(
|
||||||
'\n'); // Refresh Network Daylight Saving Time by network
|
'\n'); // Refresh Network Daylight Saving Time by network
|
||||||
data = "";
|
data = "";
|
||||||
DBG("### Daylight savings time state been updated.");
|
DBG("### Daylight savings time state updated.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} while (millis() - startMillis < timeout_ms);
|
} while (millis() - startMillis < timeout_ms);
|
||||||
|
@@ -661,23 +661,23 @@ class TinyGsmSim800 : public TinyGsmModem<TinyGsmSim800>,
|
|||||||
}
|
}
|
||||||
data = "";
|
data = "";
|
||||||
DBG("### Closed: ", mux);
|
DBG("### Closed: ", mux);
|
||||||
} else if (data.endsWith(GF("*PSNWID:" GSM_NL))) {
|
} else if (data.endsWith(GF("*PSNWID:"))) {
|
||||||
streamSkipUntil('\n'); // Refresh network name by network
|
streamSkipUntil('\n'); // Refresh network name by network
|
||||||
data = "";
|
data = "";
|
||||||
DBG("### Network name has been updated.");
|
DBG("### Network name updated.");
|
||||||
} else if (data.endsWith(GF("*PSUTTZ:" GSM_NL))) {
|
} else if (data.endsWith(GF("*PSUTTZ:"))) {
|
||||||
streamSkipUntil('\n'); // Refresh time and time zone by network
|
streamSkipUntil('\n'); // Refresh time and time zone by network
|
||||||
data = "";
|
data = "";
|
||||||
DBG("### Network time and time zone have been updated.");
|
DBG("### Network time and time zone updated.");
|
||||||
} else if (data.endsWith(GF("+CTZV:" GSM_NL))) {
|
} else if (data.endsWith(GF("+CTZV:"))) {
|
||||||
streamSkipUntil('\n'); // Refresh network time zone by network
|
streamSkipUntil('\n'); // Refresh network time zone by network
|
||||||
data = "";
|
data = "";
|
||||||
DBG("### Network time zone has been updated.");
|
DBG("### Network time zone updated.");
|
||||||
} else if (data.endsWith(GF("DST:" GSM_NL))) {
|
} else if (data.endsWith(GF("DST:"))) {
|
||||||
streamSkipUntil(
|
streamSkipUntil(
|
||||||
'\n'); // Refresh Network Daylight Saving Time by network
|
'\n'); // Refresh Network Daylight Saving Time by network
|
||||||
data = "";
|
data = "";
|
||||||
DBG("### Daylight savings time state been updated.");
|
DBG("### Daylight savings time state updated.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} while (millis() - startMillis < timeout_ms);
|
} while (millis() - startMillis < timeout_ms);
|
||||||
|
Reference in New Issue
Block a user