I have a sensor giving input to my app via bluetooth from esp32. Those sensor values are being stored in a CSV file. How can I access the values of sensor being stored in the CSV file.
Example scenario
When I am recieving the data from sensor and I want to check on the go in real time what data is being stored in the CSV. With the help of a button I want to open the file and read from it while the data is still being stored in it.
Can anyone help how can I go along with this task?
Use the File component to open a csv file stored in your ASD.
It won't update as more data is added (unless you programmatically keep opening it and reading it), you would need to take a different approach for that, and output the incoming values to a label / or similar
It should read, how do I read a CSV file in my ASD folder?
By reading it with FileScope=App with the File component and just specifying the filename there.
Note: The File component does not use an absolute or full path, but only the file name for the ASD and otherwise a relative path (for FileScope=Legacy or Shared).