Sntpc Versions Save

Rust SNTP client to get a timestamp from NTP servers

v0.3.7

5 months ago

What's Changed

Add:

  • #23: async support for the sntpc crate

v0.3.6

1 year ago

What's Changed

Add:

  • 327ac30809fbf2f081c39523a8b2676e6f4160ac helper converter functions to convert second fractional SNTP field to fractional seconds value (milliseconds, microseconds, etc.)

v0.3.5

1 year ago

What's Changed

Add:

  • timestamp generator for std feature
  • simple_get_time() function and NtpUdpSocket trait implementation for std::net::UdpSocket to reduce boilerplate when std feature is in use

Update:

  • package structure

v0.3.4

1 year ago

What's Changed

Update:

  • 1f78f73a9d81be7e6114c990a4eda9c32c15aba5: add missed methods for getting stratum and precision fields

v0.3.3

1 year ago

What's Changed

Add:

  • #22: Incorporated server precision indicators into NtpResult

Update:

  • #21: update seconds fraction field description and update the example

v0.3.2

1 year ago

What's Changed

Fix:

  • #19: fix possible overflow in offset calculation
  • e140d06585159aedbaec953a11c7acfd6fe69007: fix delta calculation to prevent overflowing errors in the roundtrip function

v0.3.1

2 years ago

What's Changed

Update:

  • move clap from dependencies to dev-dependencies
  • examples documentation

v0.3.0

2 years ago

What's Changed

  • Add no std support

Add:

  • smoltcp example to provide with overview on how to deal with custom TCP/IP stack in no_std environment
  • functions sntp_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 sending

Update:

  • rename request_with_addr function to get_time

Fix:

  • offset and roundtrip metrics calculation
  • request timestamp packing

Remove:

  • timesync binary and move it as an example, since utils module API is rather experimental