0.27.0
Pre-release
Pre-release
Added
- New
QNETHERNET_FLUSH_AFTER_WRITE
configuration macro for flushing after every call toEthernetClient::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)
andbegin(mac, ip, dns, gateway, subnet)
. - Un-deprecated
EthernetClass::init(sspin)
and added a driver function for setting the chip select pin. The type ofsspin
was also changed toint
. - 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 newqnethernet_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()
andbeginMulticastWithReuse()
tobool
. - 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)
toenet_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 toloop()
. - Fixed
util::writeMagic()
mac
parameter to beconst
. - Fixed
test_ethernet
'stearDown()
to remove listeners before callingEthernet.end()
. This ensures no out-of-scope variables are accessed. - Updated
StdioPrint
to not useerrno
because stdio doesn't set this.