Open a device, attach it later

Supporting Visual Studio on Windows
Post Reply
Orf Quarenghi
Phidgetsian
Posts: 8
Joined: Tue Jul 03, 2018 1:01 am
Contact:

Open a device, attach it later

Post by Orf Quarenghi »

Hello.

Is there a way to open an unconnected device, and get the attach event later when you connect it?

If I try to open an unconnected device, the Open statement throws an exception after the timeout. After that, no attach event is received.
User avatar
mparadis
Site Admin
Posts: 959
Joined: Fri Oct 28, 2011 12:17 pm
Contact:

Re: Open a device, attach it later

Post by mparadis »

If you use the version of open() with no timeout specified, it will behave just as you described.
Orf Quarenghi
Phidgetsian
Posts: 8
Joined: Tue Jul 03, 2018 1:01 am
Contact:

Re: Open a device, attach it later

Post by Orf Quarenghi »

...asgh! How could I miss that one!!!? :D

Thanks!!
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests