Not sure if this is the right place for this and I haven’t been able to find any solutions in my searches the past couple days…
When setting up my MKR WIFI 1010 for the Arduino Cloud, I follow the standard procedure: add Device, it makes it Arduino Cloud IoT ready, I make a Thing (simple boolean for the builtin LED), associate it with the MKR WIFI 1010, make the Dashboard with a switch to turn the LED on/off, add my network credentials, etc. When I go to compile in the Cloud IDE, it throws an error relating to ArduinoIoTCloudTCP:
In file included from /var/run/arduino/directories-user/libraries/ArduinoIoTCloud/src/ArduinoIoTCloudTCP.h:30:0,
from /var/run/arduino/directories-user/libraries/ArduinoIoTCloud/src/ArduinoIoTCloud.h:169,
from /run/arduino/sketches/MKRWIFI1010-TEST_nov01a/thingProperties.h:3,
from /run/arduino/sketches/MKRWIFI1010-TEST_nov01a/MKRWIFI1010-TEST_nov01a.ino:17:
/var/run/arduino/directories-user/libraries/ArduinoIoTCloud/src/tls/utility/TLSClientMqtt.h:28:50: error: expected class-name before '{' token
class TLSClientMqtt : public WiFiBearSSLClient {
^
In file included from /var/run/arduino/directories-user/libraries/ArduinoIoTCloud/src/ArduinoIoTCloudTCP.h:31:0,
from /var/run/arduino/directories-user/libraries/ArduinoIoTCloud/src/ArduinoIoTCloud.h:169,
from /run/arduino/sketches/MKRWIFI1010-TEST_nov01a/thingProperties.h:3,
from /run/arduino/sketches/MKRWIFI1010-TEST_nov01a/MKRWIFI1010-TEST_nov01a.ino:17:
/var/run/arduino/directories-user/libraries/ArduinoIoTCloud/src/tls/utility/TLSClientOta.h:22:49: error: expected class-name before '{' token
class TLSClientOta : public WiFiBearSSLClient {
^
Multiple libraries were found for "WiFiNINA.h"
Used: /run/arduino/custom-libraries/WiFiNINA
Not used: /run/arduino/directories-data/internal/WiFiNINA_1.9.1_7cc9ca1b1de1ea6a
Not used: /run/arduino/directories-data/internal/VEGA_WiFiNINA_1.0.1_ab2db6059607e9f4
Not used: /run/arduino/directories-data/internal/BetterWiFiNINA_1.4.1_f1b425a2b2caf410
Multiple libraries were found for "SPI.h"
Used: /run/arduino/directories-data/packages/arduino/hardware/samd/1.8.13/libraries/SPI
Not used: /run/arduino/directories-data/internal/EventEthernet_1.0.0_bd9dd894ef7641f8
Multiple libraries were found for "ArduinoMqttClient.h"
Used: /run/arduino/custom-libraries/ArduinoMqttClient
Not used: /run/arduino/directories-data/internal/ArduinoMqttClient_0.1.8_b1e57bf359553881
Multiple libraries were found for "ArduinoHttpClient.h"
Used: /run/arduino/custom-libraries/ArduinoHttpClient
Not used: /run/arduino/directories-data/internal/ArduinoHttpClient_0.6.1_969df906691206c8
Multiple libraries were found for "Wire.h"
Used: /run/arduino/directories-data/packages/arduino/hardware/samd/1.8.13/libraries/Wire
Not used: /run/arduino/directories-data/internal/FlexWire_1.2.1_1fc5f1d1a14af0e7
Multiple libraries were found for "ECCX08.h"
Used: /run/arduino/custom-libraries/ArduinoECCX08
Not used: /run/arduino/directories-data/internal/RAK5814-ATECC608A_1.0.0_3080811c7019c906
Not used: /run/arduino/directories-data/internal/ArduinoECCX08_1.3.9_3034c586747c1bc6
So I am unable to compile/upload to the MKR WIFI 1010 with the Cloud IDE, which isn’t a deal-breaker except for the fact that I’d REALLY like to be able to upload sketches OTA.
However, if I pull the exact same files to my Mac IDE via the Cloud Sketchbook, it compiles just fine - no errors. It gets online and the switch turns the LED on/off in the Dashboard.
If I push those files (keep in mind, I’ve made no changes to them) back to the Cloud IDE and try to compile, I get the exact same errors.
I get these errors with everything I try to do with the Cloud IDE for Arduino IoT - meaning, I’ve tried the Cloud Blink Template and it does the same thing: won’t compile in the Cloud IDE and throws the errors above, but if I pull it to my Mac IDE it compiles fine and works.
This is really frustrating. My IDE is up to date, my MKR WIFI 1010 firmware is up to date, the libraries on my Mac IDE are up to date. I can’t figure it out. The AI agent offered (questionable) some suggestions that I tried, but still no luck.
The only thing I’ve seen posted close to this issue mentions board packages. I’m not sure if the Cloud IDE is using a different one and that’s causing the problem - but I have no idea how to check the board package the Cloud IDE might be using. On my Mac IDE they’re all up to date.
Curious if anyone has or is having the same issue and if they might share how they fixed it?