Skip to content

0.27.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@ssilverman ssilverman released this 13 Mar 03:15
· 107 commits to master since this release

Added

  • New QNETHERNET_FLUSH_AFTER_WRITE configuration macro for flushing after every call to EthernetClient::write(). This may reduce TCP efficiency.
  • Added a W5500 driver.
  • Added a new EthernetHardwareStatus::EthernetTeensy41 enum value.
  • New QNETHERNET_DEFAULT_HOSTNAME option.

Changed

  • Made it easier to add other low-level drivers.
  • Redesigned the driver interface.
  • Un-deprecated EthernetClass::begin(mac, timeout) and begin(mac, ip, dns, gateway, subnet).
  • Un-deprecated EthernetClass::init(sspin) and added a driver function for setting the chip select pin. The type of sspin was also changed to int.
  • Removed dependency on elapsedMillis. This might help with compiling for other platforms.
  • Made the library easier to compile for other platforms.
  • Replaced all #define guards with #pragma once.
  • All QNETHERNET_* configuration macros can now be defined in a new qnethernet_opts.h file in addition to the project build.
  • Removed test dependencies on Teensy-specific things.
  • Renamed t41 driver source files to use teensy41 in the name instead.
  • Changed return type of EthernetUDP::beginWithReuse() and beginMulticastWithReuse() to bool.
  • Using better randomness for LWIP_RAND().
  • Changed attributes to use the C++ style.
  • Changed the default hostname to "qnethernet-lwip".
  • Renamed enet_get_mac(mac) to enet_get_system_mac(mac).

Fixed

  • Added missing hostByName to keywords.txt.
  • Fixed enet_output_frame() to return false if there's no output buffer.
  • Fixed EthernetClient::write(buf, size) to re-check the state after a call to loop().
  • Fixed util::writeMagic() mac parameter to be const.
  • Fixed test_ethernet's tearDown() to remove listeners before calling Ethernet.end(). This ensures no out-of-scope variables are accessed.
  • Updated StdioPrint to not use errno because stdio doesn't set this.