cordova-plugin-ia-epson
v1.0.1
Published
Epson EPOS plugin for Cordova
Downloads
3
Readme
cordova-plugin-ia-epson
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
})