Replies: 1 comment 2 replies
-
hi, very good idea, thanks for suggesting this 👍 I have pushed some changes on the main branch, you can now create a callback: void onDisconnect( uint8_t usbid )
{
Serial.printlf("Device on USB#%d was unplugged\n", usbid);
} and attach that callback from your void setup()
{
// ...
USH.setOndisconnectCb( onDisconnect );
// ...
} I'll create a release soon for arduino registry, but this is already available in platformio registry (v1.5.0) |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
What is the method for detecting USB device disconnection from USB#0 on an ESP32 WROOM with library version 0.1.4?
TIA
Beta Was this translation helpful? Give feedback.
All reactions