We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cdb3eda commit 2230e85Copy full SHA for 2230e85
1 file changed
src/ArduinoIoTCloudDevice.cpp
@@ -118,7 +118,17 @@ ArduinoCloudDevice::State ArduinoCloudDevice::handleSendCapabilities() {
118
}
119
120
#if defined(BOARD_HAS_WIFI) && not defined(BOARD_ESP)
121
- String WiFiFWVersion = WiFi.firmwareVersion();
+ String WiFiFWVersion = "";
122
+ // Skip if the Opta board doesn't have the WiFi module
123
+#if defined(ARDUINO_OPTA)
124
+ if(_getPid_() == _BOARD_PRODUCTID){
125
+#endif
126
+
127
+ WiFiFWVersion = WiFi.firmwareVersion();
128
129
130
+ }
131
132
VersionMessage versionMessage = { WiFiFWVersionMessageId, WiFiFWVersion.c_str() };
133
deliver(reinterpret_cast<Message*>(&versionMessage));
134
#endif
0 commit comments