Skip to content

Ethernet library: add missing functions #160

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 10 commits into
base: arduino
Choose a base branch
from

Conversation

leonardocavagnis
Copy link
Member

@leonardocavagnis leonardocavagnis commented Jul 31, 2025

  • Add missing functions
  • Move Ethernet files in a separated library (Ethernet)
  • Add examples

@leonardocavagnis leonardocavagnis marked this pull request as draft July 31, 2025 16:33
@leonardocavagnis leonardocavagnis marked this pull request as ready for review August 6, 2025 14:29
Comment on lines +52 to +62
void MACAddress(uint8_t *mac_address);
IPAddress localIP();
IPAddress subnetMask();
IPAddress gatewayIP();
IPAddress dnsServerIP();

void setMACAddress(const uint8_t *mac_address);
void setLocalIP(const IPAddress local_ip);
void setSubnetMask(const IPAddress subnet);
void setGatewayIP(const IPAddress gateway);
void setDnsServerIP(const IPAddress dns_server);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can avoid overloading these methods

}
public:
NetworkInterface() {}
~NetworkInterface() {}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should make this virtual

Suggested change
~NetworkInterface() {}
virtual ~NetworkInterface() = default;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants