Synchronizes time using busybox ntpd
command. Primary use is for Nerves embedded devices.
Add nerves_ntp
to your list of dependencies in mix.exs
:
def deps do
[{:nerves_ntp, git: "https://github.com/visciang/nerves_ntp.git", tag: "xxx"]
end
defmodule MyApplication do
use Application
def start(_type, _args) do
children = [{NervesNTP, [sync_on_start: true]}, ...]
opts = [...]
Supervisor.start_link(children, opts)
end
end