Skip to content

Commit

Permalink
Merge pull request #214 from JAndrassy/ethernet_macaddress_getter
Browse files Browse the repository at this point in the history
Ethernet - standard MACAddress getter with a parameter
  • Loading branch information
aentinger authored Dec 20, 2023
2 parents e13fdba + be5d98f commit 6ee152f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libraries/Ethernet/src/Ethernet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,10 @@ uint8_t *CEthernet::MACAddress(void) {
return mac_address;
}

void CEthernet::MACAddress(uint8_t *mac) {
CLwipIf::getInstance().getMacAddress(NI_ETHERNET, mac);
}

IPAddress CEthernet::localIP() {
if(ni != nullptr) {
return IPAddress(ni->getIpAdd());
Expand Down
1 change: 1 addition & 0 deletions libraries/Ethernet/src/EthernetC33.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ class CEthernet {


uint8_t *MACAddress(void);
void MACAddress(uint8_t *mac);
IPAddress localIP();
IPAddress subnetMask();
IPAddress gatewayIP();
Expand Down

0 comments on commit 6ee152f

Please sign in to comment.