The situation is as follows. When the module is started, the time is downloaded from the NTP server. After midnight winter time, each day an attempt is made to synchronise the time. I seemingly get the time, but it is always incorrect. After the first change of the day, the supposed synchronisation time is a few, several seconds later than the time of the first synchronisation (performed at module start-up).
Between synchronisations I increment the time every 10 s.
Example:
I start the module, I get the time e.g. 2020-05-09 20:15:10 (this time is correct).
After midnight in winter time, the time is synchronised again and I get the time 2020-05-09 20:15:13 (this time is already incorrect).
The next time I synchronise again, it's already a cosmos.
I am running out of ideas as to what is wrong.
Code:
main.cpp
.
.
.
.
.
Between synchronisations I increment the time every 10 s.
Example:
I start the module, I get the time e.g. 2020-05-09 20:15:10 (this time is correct).
After midnight in winter time, the time is synchronised again and I get the time 2020-05-09 20:15:13 (this time is already incorrect).
The next time I synchronise again, it's already a cosmos.
I am running out of ideas as to what is wrong.
Code:
main.cpp
Code: C / C++
Code: C / C++
Code: C / C++
Code: C / C++
Code: C / C++
Code: C / C++