altera2015 / usbserial

Flutter Android USB Serial plugin
BSD 3-Clause "New" or "Revised" License
119 stars 83 forks source link

USB Port detached / attached #68

Closed saguado69 closed 10 months ago

saguado69 commented 1 year ago

Hi,

Is it possible to catch the event when the USB Serial Port is attached or detached (Android)?

I can see those events in the console when debuging my app.

D/UsbSerialPortAdapter( 4336): ACTION_USB_ATTACHED D/UsbSerialPortAdapter( 4336): ACTION_USB_DETACHED

Thanks in advance for your support.

ext-danny commented 1 year ago

Please check this https://github.com/altera2015/usbserial/issues/38#issuecomment-764545049