hidraw enables raw access to USB and Bluetooth Human Interface (hidraw) devices. This interface is restricted because it provides privileged access to hardware devices.
- Should specify a single path attribute:
path(slot): path to hidraw device node e.g. /dev/hidraw0
- Or three attributes:
usb-vendor(slot): integer representing the USB Vendor ID, must be in range 0 < vid <= 65535
usb-product(slot): integer representing the USB Product ID, must be in range 0 <= vid <= 65535
path(slot): path where a symlink will be created to the device e.g.
Snaps that want to consume a hidraw device simply
plugs: [ hidraw ] and the hidraw device to connect is specified during interface connection. Available hidraw devices for the system can be seen with
snap interfaces. Once connected, the consuming snap can use the device via the path specified by the connected slot.