File tree 2 files changed +5
-0
lines changed
libraries/SocketWrapper/src
2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,10 @@ uint8_t* arduino::MbedSocketClass::macAddress(uint8_t* mac) {
11
11
return mac;
12
12
}
13
13
14
+ String arduino::MbedSocketClass::macAddress () {
15
+ return String (getNetwork ()->get_mac_address ());
16
+ }
17
+
14
18
int arduino::MbedSocketClass::hostByName (const char * aHostname, IPAddress& aResult) {
15
19
SocketAddress socketAddress = SocketAddress ();
16
20
nsapi_error_t returnCode = getNetwork ()->gethostbyname (aHostname, &socketAddress);
Original file line number Diff line number Diff line change @@ -113,6 +113,7 @@ class MbedSocketClass {
113
113
int hostByName (const char * aHostname, IPAddress& aResult);
114
114
115
115
uint8_t * macAddress (uint8_t * mac);
116
+ String macAddress ();
116
117
117
118
void setFeedWatchdogFunc (voidFuncPtr func);
118
119
void feedWatchdog ();
You can’t perform that action at this time.
0 commit comments