-5

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.

dur
  • 15,689
  • 25
  • 79
  • 125
mohammadkad
  • 105
  • 1
  • 10

1 Answers1

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