Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Ethernet2 - Missing functions #5867

Closed
Closed
Labels
Library: EthernetThe Ethernet Arduino library feature requestA request to make an enhancement (not a bug fix)
@DieterBurandt

Description

The Ethernet2 (and Ethernet) library supports reading the following parameters from the W5500 board:

  • localIP
  • subnetMask
  • gatewayIP
  • dnsServerIP

Curiously the two other parameters are missing:

  • MacAddr
  • dhcpServerIP

For maintenance purpose the two missing calls should be added. The W5500 driver already supports these calls, so it is very simple to do:

For the new Arduino Ethernet Shield V2 R1.0.3 ==>

Add to Ethernet2.h =>
IPAddress dhcpServerIP();
void MacAddr(uint8_t * Mac);

and to Ethernet2.cpp =>
IPAddress EthernetClass::dhcpServerIP()
{
return _dhcp->getDhcpServerIp();
}
void EthernetClass::MacAddr(uint8_t * Mac)
{
w5500.getMACAddress(Mac);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Library: EthernetThe Ethernet Arduino library feature requestA request to make an enhancement (not a bug fix)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /