Comments (4)
@MJCoolTech i'm not a platformio user, but you can try to explicitly add SFU as library dependency for nanorp2040connect.
Regarding ESP WiFiNINA is not a dependency for ESP32 board so you should not include that library
from arduinoiotcloud.
@pennam Thank you for your response. I have tried forcibly including SFU.h
using:
build_flags = -L~/.platformio/packages/framework-arduino-mbed/libraries/SFU/src
Although Bing, who suggested this solution, now says it should be:
build_flags = -L~/.platformio/packages/framework-arduino-mbed/libraries/SFU/src -lSFU
So I'll try that after finishing this. I alternatively tried using
lib_extra_dirs = ~/.platformio/packages/framework-arduino-mbed/libraries
Neither of the attempts I tried so far worked for me.
Thank you for bringing the issue with WiFiNINA.h
to my attention. I did not include that library through a header. As you can see in my original comment, I included in my main.cpp
file Arduino.h
and ArduinoIoTCloud.h
only and defined the setup
and loop
functions as empty functions. That's it. However, I have now set in my platform.ini
file:
lib_ldf_mode = chain+
That basically means it will evaluate #ifdef
s and such before #include
s, so I'll see if that fixes the issue.
Thank you for your response. I hope to be up and running soon. Have a great day!
from arduinoiotcloud.
Update: Bing recommended StarCoder, and look at the simple solution:
A conversation where the user gives an error and the response contains a fix.
User: While using PlatformIO for VSCode I got the following compilation error for the Arduino Nano RP2040:
.pio\libdeps\nanorp2040connect\ArduinoIoTCloud\src\utility\ota\OTA-nano-rp2040.cpp:30:10: fatal error: SFU.h: No such file or directory
Using the following test script:
#include <Arduino.h> #include <ArduinoIoTCloud.h> void setup() {} void loop() {}And using the following
platformio.ini
:[env] framework = arduino lib_deps = arduino-libraries/ArduinoIoTCloud@^1.11.1 build_type = debug [env:nanorp2040connect] platform = raspberrypi board = nanorp2040connectI am unsure how to fix this error as IntelliSense finds the 213 byte pain-in-the-butt file at
~/.platformio/packages/framework-arduino-mbed/libraries/SFU/src/SFU.h
as part of the platform and not in the library manager. How should I proceed?Response:
You can use
lib_ldf_mode = deep+
option inplatformio.ini
instead oflib_ldf_mode = chain+
becausedeep+
will search for the library in the project folder.
That easy. After 45 minutes of compilation on my Celeron CPU, I have 118 errors of -Wvla
, -Wdeprecated-copy
, and -Wdeprecated-declaration
, but I have compiled code for the Arduino Nano RP2040 that does nothing by design! ESP32dev still fails, though.
from arduinoiotcloud.
The ESP issue is due to WiFiNINA, so I will close this issue.
from arduinoiotcloud.
Related Issues (20)
- Reset when connected to network but no internet HOT 1
- Version 1.10.0 - Error in OTA.h HOT 4
- Compilation of my sketch fails: "`'class ArduinoIoTCloudTCP' has no member named 'getFloatProperty'`" HOT 1
- Include the capability to send messages from the modules to the messenger dashboard HOT 13
- Incompatible Lszz.py with Apple M1 processor HOT 6
- Add a cloud pause capability needed for cellular modem devices like MKR NB 1500
- OTA support for Renesas-based boards: `UNO R4 WiFi`, `Portenta C33`
- ESP32 WROOM 32 DevKit (DIYMall) error connecting to ArduinoCloud HOT 2
- Negative values HOT 5
- Scheduler isn't valid when using Time zone HOT 5
- Where are the Micropython examples and help? HOT 1
- [WIRE-10] Make ota error codes homogeneous and board specific
- Add support for LZSS tools on Windows
- Compilation fails "multiple definition of ..." when "ESP Mail Client" and ArduinoIoTCloud libraries used in sketch
- Package tools on PyPI
- Warnings of usage of depricated code within Arduin Cloud libraries
- Add support cloud type for thermostat / Alexa.TemperatureSensor
- Library does not compile from the Arduino Cloud IDE for MKR Wi-Fi 1010 HOT 4
- OTA-esp32.cpp:125:29: error: 'isCapable' is not a member of 'Arduino_ESP32_OTA' HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arduinoiotcloud.