Use ntp time sync at end of wifi activities
This commit is contained in:
@@ -65,4 +65,9 @@ void formatTime(char* buf, size_t bufSize, bool use24h);
|
||||
/// synced, or an empty string if not.
|
||||
void formatLogTime(char* buf, size_t bufSize);
|
||||
|
||||
/// Tear down WiFi cleanly. When skipNtpSync is false (default) and the
|
||||
/// clock is approximate, performs an opportunistic NTP sync before
|
||||
/// disconnecting — essentially free since we already have a connection.
|
||||
void wifiOff(bool skipNtpSync = false);
|
||||
|
||||
} // namespace HalClock
|
||||
|
||||
Reference in New Issue
Block a user