Skip to content

Commit 663fc0d

Browse files
committed
WiFi: add stub getTime() and firmwareVersion()
1 parent e619b94 commit 663fc0d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

libraries/WiFi/src/WiFi.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,17 @@ NetworkInterface *arduino::WiFiClass::getNetwork() {
250250
}
251251
}
252252

253+
unsigned long arduino::WiFiClass::getTime() {
254+
return 0;
255+
}
256+
253257
#if defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_PORTENTA_H7_M4)
258+
259+
#include "whd_version.h"
260+
char* arduino::WiFiClass::firmwareVersion() {
261+
return WHD_VERSION;
262+
}
263+
254264
arduino::WiFiClass WiFi(WiFiInterface::get_default_instance());
255265
#endif
256266

0 commit comments

Comments
 (0)