arduino-libraries / ArduinoIoTCloud

Home Page:https://app.arduino.cc

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Library does not compile from the Arduino Cloud IDE for MKR Wi-Fi 1010

zfields opened this issue · comments

/usr/local/bin/arduino-cli compile --fqbn arduino:samd:mkrwifi1010 --build-cache-path /tmp --output-dir /tmp/3214616684/build --build-path /tmp/arduino-build-5FBB2B82E8C1BA32B234A5C999B03F04  /tmp/3214616684/ArduinoIoTCloud_Basic

In file included from /tmp/3214616684/ArduinoIoTCloud_Basic/ArduinoIoTCloud_Basic.ino:18:0:
/tmp/3214616684/ArduinoIoTCloud_Basic/thingProperties.h:3:4: error: #error "Please check Arduino IoT Cloud supported boards list: https://github.com/arduino-libraries/ArduinoIoTCloud/#what"
   #error "Please check Arduino IoT Cloud supported boards list: https://github.com/arduino-libraries/ArduinoIoTCloud/#what"
    ^~~~~

Error during build: exit status 1

Hi @zfields. The cause of the error is caused by the code in the thingProperties.h file of your "ArduinoIoTCloud_Basic" sketch, not by the code of the library. So I will close this as off topic for this repository.

If you would like to learn how to write such code in a manner that will support the MKR WiFi 1010, you can study the library's "ArduinoIoTCloud-Basic" example sketch. If you would like assistance, please post over on Arduino Forum:

https://forum.arduino.cc/

I'm sure we'll be able to help you out over there.

@per1234 I think @zfields is right. There is an issue with the examples includes, should be fixed by #412

If you would like to learn how to write such code in a manner that will support the MKR WiFi 1010, you can study the library's "ArduinoIoTCloud-Basic" example sketch.

If you study the error message, you can see that I tried to compile the ArduinoIoTCloud_Basic sketch, which resulted in this error.

I see. The bug can only be reproduced when using the "old" Arduino Web Editor.

I was unable to reproduce it because I was using the "new" Cloud Editor, which does not currently automatically migrate secrets when you open a sketch as the "old" editor does.