Skip to content

Commit cf8c0e3

Browse files
committed
getCellularTime add NTPServerSync
1 parent c7ed695 commit cf8c0e3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: src/ArduinoCellular.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ Time ArduinoCellular::getGPSTime(){
124124
Time ArduinoCellular::getCellularTime(){
125125
int year, month, day, hour, minute, second;
126126
float tz;
127+
modem.NTPServerSync();
127128
modem.getNetworkTime(&year, &month, &day, &hour, &minute, &second, &tz);
128129
return Time(year, month, day, hour, minute, second);
129130
}

0 commit comments

Comments
 (0)