-
Notifications
You must be signed in to change notification settings - Fork 231
Network services
Jaume Olivé Petrus edited this page Sep 25, 2017
·
11 revisions
Lua RTOS has support for the following network services:
This service can be used by the programmer for get the current time from a NTP server and update the internal Lua RTOS clock with this time.
For start this service:
-- Setup and start an ethernet connection
net.en.setup()
net.en.start()
-- Sync Lua RTOS clock with an NTP server
net.service.sntp.start()
For stop this service:
net.service.sntp.stop()