Skip to content

Releases: newAM/w5500-rs

dhcp version 0.4.0

04 May 23:22
Compare
Choose a tag to compare

Added

  • Added a small cache for DHCP options to reduce redundant socket IO.
  • Added support for renewing and rebinding an existing lease.
  • Added Client.set_timeout to set the timeout duration.
  • Added Client.leased_ip to access the IP address provided by the DHCP server.

Changed

  • Decreased link-up polling interval from 2 seconds to 1 second.
  • Changed the default timeout from 11 seconds to 5 seconds.

Removed

  • Removed Client.is_bound, use Client.has_lease instead.

ll version 0.10.3

28 Apr 04:30
16ff6b6
Compare
Choose a tag to compare

Added

  • Added sn_tx_buf and set_sn_rx_buf methods to the Registers trait.

regsim version 0.1.0-alpha.8

10 Apr 23:03
93d7bce
Compare
Choose a tag to compare

Added

  • Added handling for set_sn_rxbuf_size and set_sn_txbuf_size.
  • Added W5500.socket_buffer_logging to disable socket buffer logging at runtime.

Changed

  • Increased the verbosity of RX buffer overflow from warn to error.

ll version 0.10.2

10 Apr 22:57
c48082e
Compare
Choose a tag to compare

Added

  • Added Sn::iter() which returns an iterator over all socket numbers.

hl version 0.8.0

10 Apr 23:13
d174e2b
Compare
Choose a tag to compare

Added

  • Added APIs for streaming IO to the socket buffers.
  • Added an Error type to support read_exact and write_all methods.
  • Added a UdpHeader type.
  • Added a Hostname type for use with DNS and DHCP.

Changed

  • Changed all methods that return a usize of the bytes read / written to return a u16 instead. This helps avoid lossy conversions from usize to u16 in some applications.
  • Changed udp_peek_from to return (u16, UdpHeader) instead of (u16, SocketAddrV4).
  • Changed udp_peek_from_header to return UdpHeader instead of (u16, SocketAddrV4).

Removed

  • Removed the nb dependency to consolidate error types.
    • To update replace nb::block! with w5500_hl::block! for these methods:
      • udp_peek_from_header
      • udp_peek_from
      • udp_recv_from

dhcp version 0.3.0

10 Apr 23:22
68b2bad
Compare
Choose a tag to compare

Added

  • Added Client.setup_socket to setup socket the socket.
  • Added Client.dns and Client.ntp to get the DNS and NTP server IPs provided by the DHCP server.

Changed

  • Changed w5500_dhcp::Error to w5500_hl::Error.
  • Changed DHCP packet processing from a local buffer to streaming from the W5500 socket buffer.
    • Client::new no longer accepts a buf argument.
  • Changed the Dhcp structure name to Client.
    • The structure previously named Client has been removed.
  • Changed the type of the hostname argument in Client::new from an unvalidated &str to a validated Hostname.
  • Changed hostnames in Client from 'static to a generic lifetime.
  • Changed State from public to private.
  • Improved handling for a physically broken link.
  • Renamed DHCP_DESTINATION_PORT to DST_PORT.
  • Renamed DHCP_SOURCE_PORT to SRC_PORT.

Removed

  • Removed on_recv_interrupt, use process instead.
  • Removed poll, use process instead.

Fixed

  • Fixed handling for receiving multiple consecutive packets.

regsim version 0.1.0-alpha.7

31 Mar 04:58
Compare
Choose a tag to compare

Fixed

  • Fixed UDP sockets binding to dport instead of port.
  • Fixed UDP sockets binding to 0.0.0.0 instead of sipr.
  • Fixed SocketCommand::Send not updating the sn_tx_rd pointer.
  • Fixed set_sn_ir not clearing socket interrupts.
  • Fixed overflow handling for socket RX buffers.

Removed

  • Removed an unused warning about the UDP socket buffer size.