8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05feca5 commit b40a9adCopy full SHA for b40a9ad
libraries/Ethernet/src/Ethernet.cpp
@@ -174,6 +174,11 @@ uint8_t *CEthernet::MACAddress(void) {
174
return mac_address;
175
}
176
177
+void CEthernet::MACAddress(uint8_t *mac) {
178
+ MACAddress();
179
+ memcpy(mac, mac_address, 6);
180
+}
181
+
182
IPAddress CEthernet::localIP() {
183
if(ni != nullptr) {
184
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