PDA

View Full Version : data realTime in Sql



Eduardo Huerta
27th June 2018, 04:44
Hello, someone knows if it is possible to load data in real time from a sensor in a sql database. The data is updated automatically every 10 minutes. I was reviewing QSqlDatabase but I see that it does not have slots and signals to be adding data from the sensor measurements. Thanks

d_stranz
27th June 2018, 05:05
You seem to have your logic backwards. A database is simply a place to store information. Some other part of your program needs to respond to the sensor when it supplies a new measurement. You then add that to the database using SQL commands. There is no functionality in any SQL database to monitor sensors in real time that I am aware of.

Eduardo Huerta
27th June 2018, 18:27
Hi, thanks for your valuable help. I solved the problem with your recommendation. regards