8000 macAddress: add function description · arduino/ArduinoCore-mbed@97d8460 · GitHub
[go: up one dir, main page]

Skip to content
Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 97d8460

Browse files
committed
macAddress: add function description
1 parent 66803fc commit 97d8460

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

libraries/SocketWrapper/src/SocketHelpers.h

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,26 @@ class MbedSocketClass {
128128

129129
int hostByName(const char* aHostname, IPAddress& aResult);
130130

131+
/*
132+
* Get the interface MAC address.
133+
*
134+
* Network interface should be ready to get a valid mac address.
135+
* Call WiFi.begin("",""); or Ethernet.begin(); before issuing a mac address
136+
* request, otherwhise returned value will be ff:ff:ff:ff:ff:ff
137+
*
138+
* return: pointer to uint8_t array with length WL_MAC_ADDR_LENGTH
139+
*/
131140
uint8_t* macAddress(uint8_t* mac, bool reversed = false);
141+
142+
/*
143+
* Get the interface MAC address String.
144+
*
145+
* Network interface should be ready to get a valid MAC address.
146+
* Call WiFi.begin("",""); or Ethernet.begin(); before issuing a mac address
147+
* request, otherwhise returned value will be ff:ff:ff:ff:ff:ff
148+
*
149+
* return: MAC Address String
150+
*/
132151
String macAddress();
133152

134153
void setFeedWatchdogFunc(voidFuncPtr func);

0 commit comments

Comments
 (0)
0