Page 1 of 1

verify conection

PostPosted: Fri Jun 23, 2023 6:50 am
by danut1234
Hi, i have written a software in C# to control axbb using the provided wrapper, now my question is, what is the best method to verify that the connection was not lost (ethernet cable unplugged, power failure, other unexpected problems)? What method (function) from the wrapper to use?

Thank you,
Dan

Re: verify conection

PostPosted: Wed Jun 28, 2023 10:51 pm
by cncdrive
It is the best if you checking it in a loop like this:

if ((UC100.ReturnVal)Isconnectionerror == UC100.ReturnVal.UC100_DEVICE_NOT_FOUND || (UC100.ReturnVal)Isconnectionerror == UC100.ReturnVal.UC100_DEVICE_NOT_OPENED)
{
// Lost connection
}

Re: verify conection

PostPosted: Thu Jun 29, 2023 5:06 pm
by danut1234
Thank you very much.

Dan