NTP client time / date command
Posted: Fri Nov 20, 2015 2:04 pm
I've added an ntpdate command that will fetch the current time and date from the net. Its based on https://github.com/sandeepmistry/esp826 ... Client.ino .
Now to figure out the best way to return the data into variables. I'm thinking about adding a subcommand to tell it what to return, like:
I'll implement this unless someone devises a better idea.
Now to figure out the best way to return the data into variables. I'm thinking about adding a subcommand to tell it what to return, like:
Code: Select all
would set var to "Wed 11 18 2015 05:32:08"ntpdate var fulldate
Code: Select all
would set var to "Wed"ntpdate var dow
Code: Select all
would set var to " 05:32:08"ntpdate var time
Code: Select all
would set var to "8"ntpdate var secs
I'll implement this unless someone devises a better idea.