8:23 AM
0
Q: How do I connect my Arduino ESP32 to Dropbox using a Dropbox token to upload there a .txt file?

N.S.I have an Arduino ESP32-S3-MINI-1 connected to my Wifi. I'm having troubles into connecting it to Dropbox for uploading a .txt file. I've already the Dropbox token, can someone provide me the .ino source code? I have also problems using libraries such as SPIFFS.h or WiFiClientSecure.h since my Ar...

 
"I have also problems...". What problem? Is there an error message?
 
No, for some libraries when they are lacking the library manager is able to find them and locate them properly, for some others like the ones I mentioned they are not displayed in the library manager. If I want them I have to take them from GitHub taking care also to download the dependecies. Anyway this is a minor problem as long as the libreries needed are not these.
 
The libraries you mentioned were SPIFFS.h and WiFiClientSecure.h which are both in the ESP32 core. If you have the ESP32 core installed in Arduino then those libraries are already there. You don't need to download or install them from anywhere.
 
I know, since I'm new to this IDE I'm wondering whether this is a normal behaviour.
 
Whether what is normal behavior? You said you couldn't find some libraries in the library manager and I told you that you shouldn't expect to find them there. Yes, that's the normal behavior.
 
8:23 AM
I got it, may you help with the code?
 
What's the problem with the code? You only said you had "troubles". That doesn't tell me much.
 
Yes, I also posted the structure of the code I'm trying to write with the explanation above. It's pretty clear, may you help? Especially I'm looking for the function uploadToDropbox() any advice may be useful. Also I tried to use the NetworkClientSecure.h downloaded from GitHub but my Windows OS seems not able to find the dependencies even though they are all present in the libraries folder.
 
It's for ESP8266, I've tried to convert it for ESP32 but I still face problems with many libraries. I have manually install many dependecies required but still some of these produce errors when compiled, I took all of them from Arduino GitHub core. I've never experienced such a bad behaviour with any other programming language and IDE related. It seems to me that Arduino library echo system is poorly mantained.
 
It seems more likely that you just don't know how to use it. You shouldn't be downloading and installing libraries from the core. You install the core and they come with it.
And again, I can't help with "problems" or "some errors". If you can't be more specific than that then you make it nearly impossible for anyone to help you.
 
8:23 AM
Ok, so as first try when I've needed a library I've installed it using the library manager of Arduino IDE, but many libraries (such as the ones previously specified) lack on the library manager results, so I've just downloaded the core and taken from there what I needed. If you think this may be the problem, please tell me what I should do also specifying from which GitHub repository I should take the libraries.
 
You should not ever install core libraries by themselves. Install the esp32 core and those libraries come with it. You don't I stall them by themselves. Why do I feel like I'm repeating myself. Never do what you did. Don't take individual files from a core. You need the whole core.
 
Ok, I've done as you suggested and I've just faced an error already met: Arduino\libraries\WiFi\src/WiFi.h:24:10: fatal error: soc/soc_caps.h: No such file or directory #include "soc/soc_caps.h" I took the core from here: github.com/espressif/arduino-esp32 This library seems to be lacking in the core.
 
How did you install the core? Did you use the boards manager? Or are you still copying stuff from GitHub?
 
I downloaded the core from the Github repository mentioned in the previohs comment and I added the whole libraries folder. You told me "Install the esp32 core and those libraries come with it... You need the whole core."
 
Yes. Install the core. Don't copy some files from it. They don't go in your libraries folder. Go find a getting started with esp32 tutorial and follow the steps to install the core through the boards manager. Stop making up your own way to do things and stuff will start working.
Delete everything you copied from GitHub. If you do this right it won't involve you going to GitHub for anything. You don't need anything from there.
 
8:23 AM
I've already done that, but the libraries are still lacking for all the reasons I've already explained you multiple times.
 
If you installed the ESP32 core and SPIFFS.h is showing up as missing then you installed it wrong. Did you do it through the boards manager? Or did you copy files somewhere?