cordova-plugin-cognex-mx1000-scanner
Cordova Beam Scanner for Cognex MX1000
Install
cordova plugin add cordova-plugin-cognex-mx1000-scanner
Usages
1.Set scan callback
// If the device is connected, whenever the barcodes are read by scanner, these callback will be called.cordovapluginscognexmx1000scanner; var { console;} var { console;}
2.Connect scanner
// Connect to USB devicecordovapluginscognexmx1000scanner; var { // now it is ready to scan} var { // scanner is not connected properly (read callback will not be called)}
3.Close connection
// Close the connectioncordovapluginscognexmx1000scanner; var { // device is closed} var { // some error was occured}
4.Check connection status
cordovapluginscognexmx1000scanner; var {// result will be true if device is connected// otherwise result will be false}
History
0.0.2
- Update script
0.0.1
- Release
License
MIT