I am working on an open source project where I am using an Arduino controller to play with light output. The data source I want to feed it is being logged real time into an SQL Server database. I want to watch data, feed it to the controller so that I can visually watch what occurs to the data being placed into the database. What is the most efficient way of doing this?
Share
Make your viewing application poll the database for new log items every, say, 50 ms. Make your viewing application remember the ID of the last record that was fetched from the database and include this ID in your query like this:
This is the most simple solution I can think of.