Cannot read file on SD card even though the file is readable outside of the library #136
DaGigabyte
started this conversation in
General
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.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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 bytes
However, when trying to print the
toSend
of reading the same file in theAsyncClient.h
,toSend
is zero. However, thefile.size()
andfilename
are valid.Line 377-393 in
AsyncClient.h
that I modified.Result:
This is the
fileCallback
used.Strangely, I am able to read the file in
setup
but not in the library. I don't see a problem in the filecallback function though...Beta Was this translation helpful? Give feedback.
All reactions