cordova-plugin-honeywellpluginct60
v0.5.0
Published
Plugin Scanner on device honeywell CT60
Downloads
11
Maintainers
Readme
cordova-plugin-HoneyWellPluginCt60 Plugin Scanner on device honeywell CT60 ( barcode + typebarcode ).
Honeywell TC60 Barcode Scanner and external device using the com.honeywell.aidc SDK (Honeywell_MobilitySDK_Android_v1.00.00.0054 DataCollection.jar )
Installation
cordova plugin add cordova-plugin-honeywellpluginct60
Tested
- Android 7.1.1 Honeywell TC60 with cordova 9.0.0 ([email protected])
javascript :
start application init The plugin *******************
plugins.ct60.softwareInit( (data) => {
console.log('Software Init : ' + data);
},
(error) => {
console.log('Error occured: ' + error)
alert('Error occured ' + error );
}
);
start the scanner (read the code bar ) ***************
plugins.ct60.softwareTriggerStart( (data) => {
//scan is done values are in data ( barcode + typebarcode separtor is ; )
console.log(' scan: ' + data);
var data1 = data.split(';');
var barcode = data1[0];
var typebarcode = data1[1];
console.log('Software scan: ' + barcode + ' Type: (' + typebarcode + ' )' );
}
,
(error) => { //Problem during the scan ( Time out , ....)
console.log('Error occured: ' + error)
}
);
stop the scanner if needing before the timeout ****
plugins.ct60.softwareTriggerStop();