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 3a44c0f commit b3a7171Copy full SHA for b3a7171
libraries/SocketWrapper/src/SocketHelpers.cpp
@@ -11,7 +11,11 @@ uint8_t* arduino::MbedSocketClass::macAddress(uint8_t* mac) {
11
}
12
13
String arduino::MbedSocketClass::macAddress() {
14
- return String(getNetwork()->get_mac_address());
+ const char* mac_str = getNetwork()->get_mac_address();
15
+ if (!mac_str) {
16
+ return String("ff:ff:ff:ff:ff:ff");
17
+ }
18
+ return String(mac_str);
19
20
21
int arduino::MbedSocketClass::hostByName(const char* aHostname, IPAddress& aResult) {
0 commit comments