Gateway System View on GitHub

Resource ID Access Type Multiple Instances Mandatory Type Description
Hostname 0 R,W Single Optional String This resource type returns the hostname of the gateway.
Timezone 1 R,W Single Optional String This resource type returns the default timezone.
DNS Server List 2 R,W Single Optional String This resource type returns a list of DNS Servers used by this system.
NTP Server List 3 R,W Single Optional String This resource type returns a list of NTP Servers.
The gateway system object contains the most basic functionalities for a gateway such as its name, timezone and so on. All properties are represented as readable and writable resources using standard LWM2M operations.
OpenWRT gateway native data model for the whole gateway
file://localhost/etc/config/system
The system section contains settings that apply to the most basic operation of the system
Name Type Required Default Description
hostname string no OpenWrt The hostname for this system. Avoid points, even if they are within single or double quotes. For example 'my.hostname' will show only the 'my' part.
timezone string no UTC The time zone that date and time should be rendered in by default.
The timeserver section contains a list of NTP servers for the system to use
Name Type Required Default Description
server list of hostnames no none Defines the pool of NTP servers to poll the time from. If the list is empty, the builtin NTP daemon is not started.
Name Type Required Default Description
enable_server boolean no 0 You can put busybox-ntpd in client mode only: by defining at least one host to server and puting enable_server 0 client & server mode: by putting enable_server to 1, (busybox-ntpd listens to UDP 123 by default), server mode only: by not defining any servers in the config and just put enable_server 1 (ntpd will answer with the time of the router)