We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 05feca5 commit be5d98fCopy full SHA for be5d98f
libraries/Ethernet/src/Ethernet.cpp
@@ -174,6 +174,10 @@ uint8_t *CEthernet::MACAddress(void) {
174
return mac_address;
175
}
176
177
+void CEthernet::MACAddress(uint8_t *mac) {
178
+ CLwipIf::getInstance().getMacAddress(NI_ETHERNET, mac);
179
+}
180
+
181
IPAddress CEthernet::localIP() {
182
if(ni != nullptr) {
183
return IPAddress(ni->getIpAdd());
libraries/Ethernet/src/EthernetC33.h
@@ -62,6 +62,7 @@ class CEthernet {
62
63
64
uint8_t *MACAddress(void);
65
+ void MACAddress(uint8_t *mac);
66
IPAddress localIP();
67
IPAddress subnetMask();
68
IPAddress gatewayIP();
0 commit comments