From 3eccf506d14e3abed7815deb8cf700dff307627b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcel=20St=C3=B6r?= Date: Mon, 25 Jul 2016 14:28:27 +0200 Subject: [PATCH] Add note about calling sntp.sync periodically --- docs/en/modules/sntp.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/en/modules/sntp.md b/docs/en/modules/sntp.md index 9560d06a..987d7950 100644 --- a/docs/en/modules/sntp.md +++ b/docs/en/modules/sntp.md @@ -10,7 +10,9 @@ When compiled together with the [rtctime](rtctime.md) module it also offers seam ## sntp.sync() -Attempts to obtain time synchronization. +Attempts to obtain time synchronization. + +For best results you may want to to call this periodically in order to compensate for internal clock drift. As stated in the [rtctime](rtctime.md) module documentation it's advisable to sync time after deep sleep and it's necessary to sync after module reset (add it to [`init.lua`](upload.md#initlua) after WiFi initialization). #### Syntax `sntp.sync([server_ip], [callback], [errcallback])`