Home › Forums › Software Development › [Solved] "Device Configuration" flag › Reply To: [Solved] "Device Configuration" flag
12/03/2018 at 17:10 #7987
Participant
hi, as promised, i tried working with the READINESS thing, and it worked nice.
but.. sometimes after a while when i try recheck the “readiness”, and although i see the red lights on the ET and even see the tray icon functions well – i get a return code of: “tobii_error_t.TOBII_ERROR_INTERNAL”
can u suggest why?
here is the piece of code:
private bool IsETReady
{
get
{
List<tobii_enumerated_device_t> devices = new List<tobii_enumerated_device_t>();
tobii_error_t rc = Interop.tobii_enumerate_devices(_tobii_strem_engine, out devices);
if (rc == tobii_error_t.TOBII_ERROR_NO_ERROR)
{
if (devices.Count == 0)
{
logger.Debug("ET Not Ready - Couldn't Find Connected Device");
return false;
}
else if (devices[0].readiness != tobii_device_readiness_t.TOBII_DEVICE_READINESS_READY)
{
logger.Error(string.Format("ET Readiness Check Failed: {0}", enumName(rc)));
return false;
}
else
{
logger.Debug("ET is Ready!");
return true;
}
}
else
{
logger.Error(string.Format("ET Readiness Check Failed: {0} - Restarting Service", convertTobiiError(rc)));
return false;
}
}
}