it seemed too easy. I stored an xml file on a sdcard connected to my esp32.
I use the SD.open()
function to access the files stored on the sdcard. For parsing the xml file I downloaded the tinyxml2 library and tried to use the xmlDocument.LoadFile()
function.
The problem is that the xmlDocument.LoadFile
function is using a std::File
pointer. The SD.open()
function return an fs::File
pointer.
The resulting error message in my ArduinoIDE is:
No matching function for call to
tinyxml2::XMLDocument::LoadFile(fs::File*)
.
Does anybody has an idea how to convert the fs::File*
into std::File*
?
Thank you very much!
tinyxml2 lib:tinyxml2 lib
Thank you so much.
as @Galik mentioned, his hint was the key for me. But in the long run @Juraj suggestion to use json the better way.