johnofleek / legatoNtp

A way of setting system time via ntpd when the cellular network is available
MIT License
0 stars 0 forks source link

Legato ntpClient app

Waits for IP to appear on the cellular interface and when current date/time is < TIME_IN_THE_PAST then requests time via system ntpd

There are some issues with the detection of the cellular IP interface. The current implementation is a hack as I can't see a way to using le_data for this

A timer is used to drive the detection as there are no events I can find to hook into. The timer update rate is fast on app start then slow once the clock is set

GIT

Git clone the project

git clone https://github.com/johnofleek/legatoNtp.git

Git "checkin"

git add .
git commit -m "your comment"
git push -u origin master

Git "checkout"

git pull origin master