USBDeviceSwift
USBDeviceSwift copied to clipboard
wrapper for IOKit.usb and IOKit.hid written on pure Swift that allows you convenient work with USB devices
Is it possible to disable/enable a device with your codebase? We have actors being filmed using laptops, and need to prevent them from actually typing or using the trackpad, but...
I believe there is a slight bug on lines 20-21 in the ViewController here... https://github.com/Arti3DPlayer/USBDeviceSwift/blob/master/CleanFlightSerialExample/CleanFlightSerialExample/ViewController.swift#L20-L21 Instead I think it should be ``` if (self.devices.count > 0 && self.devicesComboBox.indexOfSelectedItem > -1)...
I have just come into contact with Swift and MacOS technology, and I need to develop a software for keyboard communication. Several problems about HID、USB communication bothered me for many...
Hi, can you think of any reason why I can receive the disconnection notification but not the connected notification? There's no errors whatsoever, I simply don't get the connected notification....
Hi, is it possible to get the BSD Path of a mounted USB device by using / adapting this code? I've researched various interconnected stackoverflow responses: [https://stackoverflow.com/questions/40008280/usb-device-path-in-swift/46319129#46319129](https://stackoverflow.com/questions/40008280/usb-device-path-in-swift/46319129#46319129) [https://stackoverflow.com/questions/39003986/usb-connection-delegate-on-swift/39026607#39026607](https://stackoverflow.com/questions/39003986/usb-connection-delegate-on-swift/39026607#39026607) [https://stackoverflow.com/questions/34628464/how-to-implement-ioservicematchingcallback-in-swift/39662693](https://stackoverflow.com/questions/34628464/how-to-implement-ioservicematchingcallback-in-swift/39662693) Some...
Hi, loving the code. I have a question about how it can be modified to handle multiple connections of the same device. Let's say I have two USB Mice, both...
First, Thanks to the good repo. I use the demo to send a command to USB device. But the kr is -536854449. `func getStatus() throws -> [UInt8] { //Getting device...
When I try to install this swift package I get the following response: ``` shell $ swift build Updating https://github.com/Arti3DPlayer/USBDeviceSwift.git error: dependency graph is unresolvable; found these conflicting requirements: Dependencies:...
Hi, to keep code compatibility, please include a proper release tag in the repo. This allows for Swift Package Manager to use the `.upToNextMajor(from: "0.1.0")` and related version compatibility methods.
How Do I get USB Device's serial number?