Closed maze61 closed 1 year ago
Hello, a quick but ugly workaround would be to dereference the pointer:
char **strings = (char**)((*csvPtr)[0]);
A more elegant workaround would be to pass CSV_Parser object as a reference instead of a pointer.
The reason for the issue is that currently "[]" operators are only overloaded for the CSV_Parser object and not for a pointer of it.
Hello Michal,
again thank you so much for your ultrafast reply!!!
Both methods work well :-)
Take care, Marcus
Hello Michal,
I now make extensive use of your CSV_Parser: reading list from SD card via csv files, to later display them in the UI.
Where I'm struggling: how to then access the individual values, if I'm using
CSV_Parser *cpPtr
later? I used the pointer inBut how to access the individual values??? I tried different approaches, but with no success, because of my lack in understanding C++.
Here's my sketch:
As I'm using
M5Stack
and notArduino
, may I please ask you to un/comment the lines marked with// ###
.Thank you, Marcus