I updated the attached code to fix compile issues identified with PR#192
The hashmap returned by usbManager.getDeviceList() contains devices in random order. These changes ensure that access is requested for the first supported device. This fixes an issue when other devices are present, and would sometimes appear ahead of the USB/Serial device in the hashmap, so access was requested for the wrong device.
Other changes add key diagnostic information to the log for debugging purposes.
I updated the attached code to fix compile issues identified with PR#192
The hashmap returned by usbManager.getDeviceList() contains devices in random order. These changes ensure that access is requested for the first supported device. This fixes an issue when other devices are present, and would sometimes appear ahead of the USB/Serial device in the hashmap, so access was requested for the wrong device.
Other changes add key diagnostic information to the log for debugging purposes.