Dynamic list creation for drop down list.
What MCU/Processor/Board and compiler are you using?
What do you want to achieve?
Populate the dropdown list with the directory list of files from spiffs directory.
What have you tried so far?
I followed the example code from the documentation. Saw that the hardcoded list items are just text with the \n separator between them. I tried making a string out of the directory list and got into trouble inserting the \n. Spent half a day solving it but eventually got over it only to find out that the list should be a pointer object.
My question is: is there a better way of populating the dropdown list rather than using the method i made?
Code to reproduce
The code block(s) should be formatted like:
Screenshot and/or video
If possible, add screenshots and/or videos about the current state.