Hello all, I am wondering if there is a way to detect the state of a USB port on a Mac and possibly listen for state changes.
I have explored options with the serial libraries without avail. So far I have found nothing that will detect an actual state or state change of a USB port. Case in point, if a USB device is plugged into a PC/Mac and you go to boot options it should check all USB ports for an external device for boot. This may be done pretty early in the boot process, but still I would love to be able to figure this out.
I have explored options with the serial libraries without avail. So far I have found nothing that will detect an actual state or state change of a USB port. Case in point, if a USB device is plugged into a PC/Mac and you go to boot options it should check all USB ports for an external device for boot. This may be done pretty early in the boot process, but still I would love to be able to figure this out.