Giter Site home page Giter Site logo

cordova-plugin-epos2's Introduction

cordova-plugin-epos2

Cordova plugin for Epson ePOS SDK(v2.6.0) for iOS and Android.

Check supported device and requirement from official SDK by Epson. iOS Android

API

Printer Discovery

.startDiscover(successCallback, errorCallback)

This will only search for supported printers in local area network(LAN)

window.epos2.startDiscover(function(deviceInfo) => {
    // success callback with deviceInfo
}, function(error) => {
    // error callback
})

.stopDiscover(successCallback, errorCallback)

window.epos2.stopDiscover(function() => {
    // success callback
}, function(error) => {
    // error callback
})

Printer Connection

.connectPrinter(ipAddress, successCallback, errorCallback)

window.epos2.connectPrinter(ipAddress, function() => {
    // success callback
}, function(error) => {
    // error callback
})

.disconnectPrinter(successCallback, errorCallback)

window.epos2.disconnectPrinter(function() => {
    // success callback
}, function(error) => {
    // error callback
})

Printing

.print(stringData, successCallback, errorCallback)

Use '\n' in string data in order to move to next line.

Cut feed is added automatically.

window.epos2.print(stringData, function() => {
    // success callback
}, function(error) => {
    // error callback
})

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.