Skip to content

Commit 3bb49a3

Browse files
andreagilardonipennam
authored andcommitted
WiFi: add firmwareVersion method
1 parent 347d452 commit 3bb49a3

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

libraries/WiFi/src/WiFi.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
11
#include "WiFi.h"
22

33
WiFiClass WiFi;
4+
5+
String WiFiClass::firmwareVersion() {
6+
#if defined(ARDUINO_PORTENTA_C33)
7+
return "v1.5.0";
8+
#else
9+
return "v0.0.0";
10+
#endif
11+
}

libraries/WiFi/src/WiFi.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@ class WiFiClass : public NetworkInterface {
113113
return 0;
114114
}
115115

116+
String firmwareVersion();
117+
116118
private:
117119
struct net_if *sta_iface = nullptr;
118120
struct net_if *ap_iface = nullptr;

0 commit comments

Comments
 (0)