Skip to content

Releases: vpetrigo/sntpc

v0.3.7

07 Jan 17:02
09cbb60
Compare
Choose a tag to compare

What's Changed

Add:

  • #23: async support for the sntpc crate

v0.3.6

11 Jun 09:50
dfbb5b3
Compare
Choose a tag to compare

What's Changed

Add:

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

v0.3.5

11 Jun 09:13
ccd336c
Compare
Choose a tag to compare

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

09 May 20:34
566a5b5
Compare
Choose a tag to compare

What's Changed

Update:

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

v0.3.3

08 May 20:15
fcc384c
Compare
Choose a tag to compare

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

09 Nov 17:21
a1ba6c7
Compare
Choose a tag to compare

What's Changed

Fix:

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

v0.3.1

09 Nov 09:50
v0.3.1
cffc27c
Compare
Choose a tag to compare

What's Changed

Update:

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

v0.3.0

09 Nov 09:33
v0.3.0
686ddb6
Compare
Choose a tag to compare

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