I am receiving uint8_t bytes from arduino to android, using bluetooth. I am displaying a log on the screen. Two things I need to do that I can't find out how to perform.
1-
I want to store each uint8_t, do some math on it, and output another log under it.
Example:
Left: 16
Right: (Left/2)
How would I go about displaying storing Left and then displaying Right (And also storing Right)?
2-
Once the connection is cut, I have a line at the top with an identifier, and a save button on the right. Say I input 1234 as identifier and hit save, I want the android app to save a file with the log, as xml or something, called 1234.xml. How would I go about doing that?
I tried searching for it, but bluetooth searches result in making the connection, not on how to then store the data. Help is much appreciated!