Skip to content

Network services

Jaume Olivé Petrus edited this page Sep 25, 2017 · 11 revisions

Lua RTOS has support for the following network services:

SNTP

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()

HTTP

CAPTIVE DNS

MDNS

Clone this wiki locally