W3Cschool
恭喜您成為首批注冊用戶
獲得88經(jīng)驗(yàn)值獎勵
獲取USB設(shè)備信息
openUSB(callback(ret, err))
ret:
{
"deviceInfo": {
"0": {
"0": "Bus=0001 Vendor=80ee Product=cafe Version=0500 ",
"1": "Name=\"VirtualBox mouse integration\" ",
"2": "Phys= ",
"3": "Sysfs=/devices/pci0000:00/0000:00:04.0/input/input3 ",
"4": "Uniq= ",
"5": "Handlers=event3 ",
"6": "PROP=0 ",
"7": "EV=b ",
"8": "KEY=10000 0 0 0 0 0 0 0 0 ",
"9": "ABS=3 ",
"10": " "
},
"1": {
"0": "Bus=0000 Vendor=dbdb Product=0002 Version=0001 ",
"1": "Name=\"gpio\" ",
"2": "Phys= ",
"3": "Sysfs=/devices/virtual/input/input6 ",
"4": "Uniq= ",
"5": "Handlers=kbd event6 ",
"6": "PROP=0 ",
"7": "EV=23 ",
"8": "KEY=c0000 0 0 0 ",
"9": "SW=1 ",
"10": " "
}
}
}
var demo = api.require('sunmiT1Printer');
demo.openUSB(function(ret, err) {
alert(JSON.stringify(ret));
});
Android系統(tǒng)
可提供的1.0.0及更高版本
Copyright©2021 w3cschool編程獅|閩ICP備15016281號-3|閩公網(wǎng)安備35020302033924號
違法和不良信息舉報電話:173-0602-2364|舉報郵箱:jubao@eeedong.com
掃描二維碼
下載編程獅App
編程獅公眾號
聯(lián)系方式:
更多建議: