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 b460521 commit 49e803cCopy full SHA for 49e803c
libraries/WiFi/src/WiFi.cpp
@@ -1,3 +1,14 @@
1
#include "WiFi.h"
2
3
WiFiClass WiFi;
4
+
5
+String WiFiClass::firmwareVersion() { // TODO integrate fw version detection
6
+#if defined(ARDUINO_PORTENTA_C33)
7
+ return "v1.5.0"
8
+#if defined(ARDUINO_PORTENTA_H7) || defined(ARDUINO_OPTA) || defined(ARDUINO_GIGA) ||\
9
+ defined(ARDUINO_NICLA_VISION) || defined(ARDUINO_NICLA_SENSE_ME)
10
+ return "v0.0.0"
11
+#else
12
+ return "v0.0.0";
13
+#endif
14
+}
libraries/WiFi/src/WiFi.h
@@ -108,6 +108,8 @@ class WiFiClass: public NetworkInterface
108
return 0;
109
}
110
111
+ String firmwareVersion();
112
113
private:
114
struct net_if *sta_iface = nullptr;
115
struct net_if *ap_iface = nullptr;
0 commit comments