StevenMartin
Member
I'm using the USBHost_t36 with a MIDIDevice. I'm wondering what the method is for detecting if a USB device has been disconnected or reconnected during runtime.
I'm looking (as a simple starting base), to just call a function that prints 'Disconnected' when the cable is unplugged from the device and then another that prints 'Connected' when the cable/device gets plugged back in.
Is there a callback I can set? Or some kind of status I can poll to read?
I'm looking (as a simple starting base), to just call a function that prints 'Disconnected' when the cable is unplugged from the device and then another that prints 'Connected' when the cable/device gets plugged back in.
Is there a callback I can set? Or some kind of status I can poll to read?