This commit is contained in:
Marcel Stör 2016-11-10 21:31:49 +01:00
parent fdc766be9f
commit 1e955caf26
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ When compiled together with the [rtctime](rtctime.md) module it also offers seam
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). 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 #### Syntax
`sntp.sync([server_ip], [callback], [errcallback])` `sntp.sync([server_ip], [callback], [errcallback])`