I linked a caliper to my computer with a RS232C-USB cable and I managed to get the data and print them in console. The caliper sends data everytime I press a pedal.
The problem is I can only acquire data once at the beginning, I'm searching for a function that would freeze the program, waiting for an input from the caliper before printing. The only one I have in mind is read(), but it doesn't seem to make the program wait for input.
Thanks in advance