Hello,
I am trying to learn App inventor to build an app that will be able to connect to a Bluetooth-enabled device. That device is sensing 16 sensor values over Bluetooth, 10 times a second separated by semicolons. I want to make an app that will be able to store the sensor data in a text file. each line of the text file will have all 16 sensor values separated by semicolons. So each second it will write 10 lines in the text file.
Secondly, I want to add the date and time stamp each time the Bluetooth communication starts. So in a way, the first line of the text file would be time and data and from the second line, it will start to write the sensor data with the received time stamp of those 16 values.
When the app stops or is disconnected and reconnected, it will again start writing in the same file with the current time and date from the following line:
Any suggestions on which functions to look into? I have seen the "file" block, please correct me if I'm wrong but it looks like there is no option to save the data from a string.
Also, I am separating all the data by semicolons and after the last data, there will be a "space" or some other marker to indicate the end of each set of readings. So, I need to detect those markers to detect the start and end of the data stream for each reading.
I would really appreciate it if someone can suggest to me the "function block" that I need to look into to build the App.
Thank you.