Cannot read file on SD card even though the file is readable outside of the library #136
Replies: 1 comment
-
|
If you use ESP32, this is the issue in ESP32 If your ESP32 core SDK is up to dated, the current version of library examples that using global defined File object should work normally. FirebaseClient/examples/Storage/Async/Callback/Download/Download.ino Lines 219 to 242 in f700d7e If you are using outdated ESP32 core SDK (v2,x.x), you should follow the old examples that using library local defined File object like this. FirebaseClient/examples/Storage/Async/Callback/Download/Download.ino Lines 220 to 241 in 0bd66fb This issue only existed in ESP32 core only. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have encountered a similar problem problem as #128. But I think our cases are different.
Firstly, I am able to read from my file on SD card using the following code in
setup().Output:
[ 5222][E][main.cpp:170] setup(): [File] Read 2048 bytesHowever, when trying to print the
toSendof reading the same file in theAsyncClient.h,toSendis zero. However, thefile.size()andfilenameare valid.Line 377-393 in
AsyncClient.hthat I modified.Result:
This is the
fileCallbackused.Strangely, I am able to read the file in
setupbut not in the library. I don't see a problem in the filecallback function though...Beta Was this translation helpful? Give feedback.
All reactions