I develop some USB communication which custom made device. I have use this USB dll to made things easier:
Very good library but have one little bug. For example if I send something to USB device and device doesnt responde to that (it is not right command, etc.) this dll toolbox waiting for command response to infinity!
Now I like to add some timeout if after some second it no response go further.
I use now method whith bool status response, that I know if reading was successful or not.
var readreport = _choosendevice.ReadReport();
Later I need "readreport" variable, because there inside (readreport.Data) are acceptet data.
My question is how to implement this line into some timeout command? I found already solution for bug, but was not working for me (bug fix link).
If any question please ask. If question is not questioned in the right way, sorry for that because I am beginner in C#. THANKS! for help