Skip to content

Commit 2230e85

Browse files
committed
send empty string for wifi fw version for opta lite and opta rs465
1 parent cdb3eda commit 2230e85

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

src/ArduinoIoTCloudDevice.cpp

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,17 @@ ArduinoCloudDevice::State ArduinoCloudDevice::handleSendCapabilities() {
118118
}
119119

120120
#if defined(BOARD_HAS_WIFI) && not defined(BOARD_ESP)
121-
String WiFiFWVersion = WiFi.firmwareVersion();
121+
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+
#if defined(ARDUINO_OPTA)
130+
}
131+
#endif
122132
VersionMessage versionMessage = { WiFiFWVersionMessageId, WiFiFWVersion.c_str() };
123133
deliver(reinterpret_cast<Message*>(&versionMessage));
124134
#endif

0 commit comments

Comments
 (0)