0.13.0
Pre-release
Pre-release
Added
EthernetFrame
convenience functions that also write the header:beginFrame(dstAddr, srcAddr, typeOrLen)
beginVLANFrame(dstAddr, srcAddr, vlanInfo, typeOrLen)
qindesign::network::util
Print utility functions. Thebreakf
function parameter is used as the stopping condition inwriteFully()
.writeFully(Print &, buf, size, breakf = nullptr)
writeMagic(Print &, mac, breakf = nullptr)
enet_deinit()
now gracefully stops any transmission in progress before shutting down Ethernet.EthernetClass
functions:linkIsFullDuplex()
: Returns whether the link is full duplex (true
) or half duplex (false
).broadcastIP()
: Returns the broadcast IP address associated with the current local IP and subnet mask.
- Functions that return a pointer to the received data:
EthernetUDP::data()
EthernetFrame::data()
DNSClient::getServer(index)
function for retrieving a specific DNS server address.EthernetUDP::localPort()
: Returns the port to which the socket is bound.- Three new examples:
IPerfServer
OSCPrinter
PixelPusherServer
Changed
- The
EthernetClient::writeFully()
functions were changed to return the number of bytes actually written. These can break early if the connection was closed while attempting to send the bytes. - Changed
EthernetClient::writeFully()
functions to use the newwriteFully()
Print utility function. - Changed the
Ethernet
object to be a reference to a singleton. This matches how theEthernetFrame
object works. - Changed the
read(buf, len)
functions to allow a NULL buffer so that the caller can skip data without having to read into a buffer. - Moved internal classes and structs into an "internal" namespace to avoid any potential contflicts with user declarations.
Removed
- Removed IEEE 1588 initialization and timer read.
Fixed
- Fixed
EthernetClient::availableForWrite()
to re-check the state after the call toEthernetClass::loop()
.