Skip to content

Commit b158675

Browse files
authored
Merge pull request #592 from manchoz/add_get_wifi_macaddress
Add WiFi::macAddress
2 parents eb92e15 + 69b7023 commit b158675

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

Diff for: libraries/WiFi/src/WiFi.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,11 @@ void arduino::WiFiClass::statusCallback(nsapi_event_t status, intptr_t param)
229229
}
230230
}
231231

232+
void arduino::WiFiClass::MACAddress(uint8_t *mac_address)
233+
{
234+
macAddress(mac_address);
235+
}
236+
232237
#if defined(COMPONENT_4343W_FS)
233238

234239
#define WIFI_FIRMWARE_PATH "/wlan/4343WA1.BIN"

Diff for: libraries/WiFi/src/WiFi.h

+2
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ class WiFiClass : public MbedSocketClass {
7777
*/
7878
int begin(const char* ssid, uint8_t key_idx, const char* key);
7979

80+
void MACAddress(uint8_t *mac_address);
81+
8082
/* Start Wifi connection with passphrase
8183
* the most secure supported mode will be automatically selected
8284
*

0 commit comments

Comments
 (0)