@foodexplorer/cordova-zebra-printer
v1.0.0
Published
Cordova Zebra Printer Plugin
Downloads
3
Readme
title: cordova-zebra-printer description: Plugin for use zebra printer by bluetooth
cordova-zebra-printer
This plugin allow a scan and print in zebra printer devices.
Report issues with this plugin on the cordova-zebra-printer issue tracker
Installation
cordova plugin add https://github.com/adriangrana/cordova-zebra-printer.git
Properties
- zebra.scan
- zebra.write
zebra.scan
The zebra.scan
returns an array of the name of the printer and it serial number.
Supported Platforms
- iOS
Quick Example
zebra.scan(function success(devices){
devices.forEach(function(device){
console.log(device.name+":"+device.serialNumber);
});
},
function fail(error){
alert(error);
})
zebra.write
The zebra.write
allow connect and print in zebra printer device.
Supported Platforms
- iOS
Quick Example
var serialNumber="XXQLJ144902148";
var data = "! 0 200 200 406 1\r\nON-FEED IGNORE\r\nBOX 20 20 380 380 8\r\nT 0 6 137 177 TEST\r\nPRINT\r\n";;
zebra.write(serialNumber,data,function success(info){
console.log(info);
},
function fail(error){
console.log(error);
})