Reads data from USB device and prints it in the output window.
usb_readdata(path); usb_readdata(path, size); usb_readdata(path, size, timeout);
path = "\\?\hid#vid_045e&pid_028e&ig_00#8&1fa5fd5b&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}"; result = usb_readdata(path, 8, 1000);
result:
8
Output:
0x00, 0x80, 0xFF, 0x7F, 0x00, 0x80, 0xFF, 0x7F
path = "\\?\hid#vid_045e&pid_028e&ig_00#8&1fa5fd5b&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}"; result = usb_readdata(path, 0, 1000);
result:
14
Output:
0x00, 0x80, 0xFF, 0x7F, 0x00, 0x80, 0xFF, 0x7F,0x00, 0x80, 0x00, 0x00, 0x00, 0x00