Hello everyone, I'm new here, and I probably wouldn't be here if it weren't for my issue with ESP32 libraries. I'm using Firebase with the Firebase_ESP_Client library, specifically for Storage. I wanted to upload a file from the SD card. When I use the SD_MMC library, which works fine on my ESP32-CAM, as it can read and write to the card without issues. However, when I try to use it with the Firebase library, it doesn't recognize the SD card and gives me the error message "Upload failed, SD Storage is not ready. SD Storage is not ready."
If I use the SDHelper.h library, the card is visible, and I can place a file in Storage. Unfortunately, this library doesn't provide the file appending function that I need, or at least I haven't found such a command in that library. This function is available in SD_MMC.h. I've tried many things, but none of them have worked. Is there a way to make the card and files visible to Firebase Storage using SD_MMC.h, or does SDHelper actually have a file appending function?
ESP32 Firebase SD_MMC
-
- Posts: 826
- Joined: Mon Jul 22, 2019 3:20 pm
Re: ESP32 Firebase SD_MMC
I really don't know anything about those libraries (which you did not provide links for), but another option would be to read the file into psram, and then give Firebase that array. Not sure what exactly you need append for if you are uploading the file...
Re: ESP32 Firebase SD_MMC
I will try to explain more. I create a log file that is saved on the SD card, this file is updated after each event by adding another line of text. Then I want to send this file to firebase every hour. The SD_MMC library allows me to operate on the file, including adding subsequent lines of text. Unfortunately, the Firebase library does not see the memory card using the SD_MMC library. Firebase sees it using the <addons/SDHelper.h> library. Unfortunately, it does not allow adding subsequent lines to the file, at least I haven't found anything about it. It would be possible, of course, to read the entire file and add another line to the memory, deleting the current file and saving a new one to the SD card, but I don't know if I have enough RAM for such an operation. Especially since the file will add new lines for 24 hours.
-
- Posts: 826
- Joined: Mon Jul 22, 2019 3:20 pm
Re: ESP32 Firebase SD_MMC
If you look through FirebaseFS.h, it has info about changing the filesystem to SD_MMC.
Re: ESP32 Firebase SD_MMC
I've already tried this, although I'm not sure if I'm doing it right.
Who is online
Users browsing this forum: No registered users and 132 guests