|
-
Jun 7th, 2013, 03:07 PM
#1
Thread Starter
Junior Member
Detecting Disconnection of USB Serial Device
I am connected to an Arduino board via a USB link. My code catches exceptions when the USB cable is disconnected and any code references the SerialPort object. This works fine, but what is the simplest way of detecting when the Serialport object disappears so that I can rescan the available ports, list them to the user and flash a message to the effect that the device has been disconnected? I found a reference in a search to capturing the "WM_DEVICECHANGE message". Would this be the way to go about doing this?
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|