1.0.0 • Published 3 years ago

@foodexplorer/cordova-zebra-printer v1.0.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
3 years ago

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);
    })