I've written a simple JavaFX application in which I read sensors data (light, temperature, humidity, ...) from serial port (I use Arduino) and now I want to store these data, but I don't know what is the best approach to do this. Could you help me please.
Asked
Active
Viewed 195 times
1 Answers
2
It's depends of what you want to do with these data, you have many options.
Per example, you can store them in a database https://www.tutorialspoint.com/jdbc/jdbc-insert-records.htm
Or serialise them in a file How to write and read java serialized objects into a file

Community
- 1
- 1

L. Carbonne
- 471
- 5
- 10