File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
libraries/SocketWrapper/src Expand file tree Collapse file tree 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) {
1111 return mac;
1212}
1313
14+ String arduino::MbedSocketClass::macAddress () {
15+ return String (getNetwork ()->get_mac_address ());
16+ }
17+
1418int arduino::MbedSocketClass::hostByName (const char * aHostname, IPAddress& aResult) {
1519 SocketAddress socketAddress = SocketAddress ();
1620 nsapi_error_t returnCode = getNetwork ()->gethostbyname (aHostname, &socketAddress);
Original file line number Diff line number Diff line change @@ -113,6 +113,7 @@ class MbedSocketClass {
113113 int hostByName (const char * aHostname, IPAddress& aResult);
114114
115115 uint8_t * macAddress (uint8_t * mac);
116+ String macAddress ();
116117
117118 void setFeedWatchdogFunc (voidFuncPtr func);
118119 void feedWatchdog ();
You can’t perform that action at this time.
0 commit comments