Open raymondbarrot opened 6 years ago
I already have the vid and pid of the device but when I put the driver which is 'NXP' the code throws "unknown driver" error. Here is the sample code:
this.serial.requestPermission({ vid:'1FC9', pid:'0083', driver: 'NXP'}).then(() => { this.serial.open({ baudRate: 9600, dataBits: 4, stopBits: 1, parity: 0, dtr: true, rts: true, sleepOnPause: false }).then(() => { this.showToast('Serial Port Connected!'); }); }).catch((error: any) => this.showToast(error));
What driver should I use as a parameter to requestPermission method? Thank you.
Is OTG capability required for the phone to use this? Thank you.
I already have the vid and pid of the device but when I put the driver which is 'NXP' the code throws "unknown driver" error. Here is the sample code:
this.serial.requestPermission({ vid:'1FC9', pid:'0083', driver: 'NXP'}).then(() => { this.serial.open({ baudRate: 9600, dataBits: 4, stopBits: 1, parity: 0, dtr: true, rts: true, sleepOnPause: false }).then(() => { this.showToast('Serial Port Connected!'); }); }).catch((error: any) => this.showToast(error));
What driver should I use as a parameter to requestPermission method? Thank you.