0.18.0
Pre-release
Pre-release
Added
- Added a "Notes on ordering and timing" section to the README.
- Added a README section that discusses
EthernetClient::connect()
and its return values. - Added non-blocking TCP connection functions,
connectNoWait()
, that are equivalent to theconnect()
functions but don't wait for the connection to complete. - Added
EthernetUDP::beginWithReuse()
andbeginMulticastWithReuse()
functions to replace the corresponding begin-with-reuse-parameter versions. - Added printing the link speed and duplex in the IPerfServer example.
- Added an "Asynchronous use is not supported" section to the README.
- New
EthernetClass::onInterfaceStatus(callback)
andinterfaceStatus()
functions for tracking the network interface status. - Added a check to ensure lwIP isn't called from an interrupt context.
Changed
- Wrapped
LWIP_MDNS_RESPONDER
option inlwipopts.h
with#ifndef
and added it to the README. - Made
EthernetClass::loop()
non-static. - Changed serial output in examples to use CRLF line endings.
- Changed
EthernetClient::connect()
internals to callclose()
instead ofstop()
so that any cleanup doesn't block. - Updated
EthernetClient::connect()
to return some of the error codes defined at Ethernet - client.connect(). - Changed
EthernetServer::begin()
-with-Boolean-reuse-parameters to be namedbeginWithReuse()
. This avoids too many overloads with mysterious Boolean arguments. - Changed
EthernetServer::operator bool()
to beconst
. - Changed
EthernetServer::end()
to returnvoid
instead ofbool
. - Changed
MDNSClass::begin(hostname)
andDNSClient::getHostByName()
to treat a NULL hostname as an error; they now explicitly return false in this case. - Changed
MDNSClass::end()
to returnvoid
instead ofbool
. - Changed examples that use
unsigned char
to useuint8_t
in appropriate places. EthernetUDP::begin
functions now callstop()
if the socket is listening and the parameters have changed.MDNSClass::begin(hostname)
now callsend()
if the responder is running and the hostname changed.- Changed both
EthernetServer
andEthernetUDP
to disallow copying but allow moving. - Changed raw frame support to be excluded by default. This changed the
QNETHERNET_DISABLE_RAW_FRAME_SUPPORT
macro toQNETHERNET_ENABLE_RAW_FRAME_SUPPORT
. - Changed
tcp_pcb
member accesses to use appropriate TCP API function calls. This fixes use of the altcp API.
Removed
EthernetServer
andEthernetUDP
begin functions that take a Booleanreuse
parameter.
Fixed
EthernetUDP::begin
functions now callstop()
if there was a bind error.- Fixed
EthernetClient::setNoDelay(flag)
to actually use theflag
argument. The function was always setting the TCP flag, regardless of the value of the argument. - Fixed printing unknown netif name characters in some debug messages.
- Fixed
EthernetClient::connect()
andclose()
operations to check the internal connection object for NULL acrossyield()
calls. - Fixed
lwip_strerr()
buffer size to include the potential sign. - Don't close the TCP pcb on error since it's already been freed.