Rust SNTP client to get a timestamp from NTP servers
Add:
smoltcp
example to provide with overview on how to deal with custom TCP/IP stack in no_std
environmentsntp_send_request
and sntp_process_response
to allow library to work in an environment where the get_time
call is not possible. E.g. smoltcp
requires to poll underlying interface explicitly to send TX buffers to/receive data into RX buffers - in that case the get_time
returns error, since data is not ready after sendingUpdate:
request_with_addr
function to get_time
Fix:
offset
and roundtrip
metrics calculationRemove:
timesync
binary and move it as an example, since utils
module API is rather experimental