I am doing an integration with SAT, when I can not communicate with the equipment the application hangs. Is there any way I can set a wait time for this process to run, canceling the operation when timeout is reached?
I am doing an integration with SAT, when I can not communicate with the equipment the application hangs. Is there any way I can set a wait time for this process to run, canceling the operation when timeout is reached?
Do with thread and set a timeout for the thread, so you will call the SAT within the thread and if any problem occurs, the thread timeout will be reached and the system will exit.