Skip to content

Ethernet3

Ethernet3

Components

Hardware components

x 1

Arduino

Software Apps and online services

Project description

Original Link:? https://github.com/khoih-prog/Ethernet3

Ethernet3 v1.5.x

Ethernet library for Arduino and Ethernetshield2 / WIZ550io / WIZ850io / USR-ES1 with Wiznet W5500 chip based on the Ethernet2 library of arduino.org I added many new functionalities.

new in 1.5

  • custom hostname for DHCP
  • the PHY is configurable
  • Wake on LAN
  • added new example for webclient "WebClientReadResponse.ino"
You need to include
#include <Ethernet3.h> // instead Ethernet.h
#include <EthernetUdp3.h> // instead EthernetUdp.h for UDP functionality

Custom Hostname

For use with DHCP you can set a custom hostname, this must be done before Ethernet.begin(mac).
Ethernet.setHostname(char* hostname);

PHY Configuration

The PHY is now configurable, this must done after Ethernet.begin() Following modes are possible: HALF_DUPLEX_10, FULL_DUPLEX_10, HALF_DUPLEX_100, FULL_DUPLEX_100, FULL_DUPLEX_100_AUTONEG, POWER_DOWN, ALL_AUTONEG (default)
Ethernet.phyMode(phyMode_t mode);

Wake on LAN

You can set the Wake on LAN functionality
Ethernet.WoL(bool wol);

what's next

In version 2 there will mDNS and a large code cleanup A new NTP library is published https://github.com/sstaub/NTP

Comments

Comments