dschex wrote:I don't see any examples where the devices can be queried and then attached appropriately per software.
Has anybody done this? Can you please share your code or point me to examples that accomplish this?
foreach attached device, call the manager OnAttach_Handler (passing the device handler, as if it was being attached now)
wait until shutdown requested
based on the DeviceClass:
and any other callback handlers you need
CPhidget_open(using handle and serial)
Do whatever you want, the phidget is alive!
Stop doing whatever you want, the phidget isn't here anymore..
Whenever it is safe (as in, no longer in the callstack):
Users browsing this forum: No registered users and 1 guest