Hello, all.
I have a software written, which has some GUI under Linux,
working with Sqlite bases.
Now there is an add - I have to send some data via serial port
after set period of time, constantly. There must be some mechanism to do that on ++. It doesn't matter where the software is, it needs to send data via port
to show the weight on a remote display.
I need an advise as this is new section for me at all.
Thank you, PanGalactic. I looked the link. As far as I see it explains the usage of serial port. But I need to set it once to work to send for let's say every 5 seconds and forget about it. I have a code how to send to port but I need to make it to work in a background. I think I need some thread or process to make and this is where I'm stack at the moment.
Boost Asio is a framework for doing what you need. Look at the core Asio documentation. It manages asynchronous IO using the proactor and reactor patterns. If you want to manage things at a lower level by creating your own threads, you can do that too by using the Boost Thread library.