placefull / cordova-plugin-epson-printer

Cordova plugin for Epson Thermal Printers
MIT License
1 stars 0 forks source link

Documentation #1

Open vikasr1234 opened 6 years ago

vikasr1234 commented 6 years ago

Is there any documentation available on how to use this?

I have tried the following and doesnt seem to work cordova.plugins.EpsonPrinter.initializePrinter(1);

  // cordova.plugins.EpsonPrinter.connect(1);

  cordova.plugins.EpsonPrinter.addTextAlign();
  cordova.plugins.EpsonPrinter.addText("Hello Printer");

  cordova.plugins.EpsonPrinter.beginTransaction();
  cordova.plugins.EpsonPrinter.printData();
  cordova.plugins.EpsonPrinter.endTransaction();

  // cordova.plugins.EpsonPrinter.disconnect();
  cordova.plugins.EpsonPrinter.deinitializePrinter();
danyojang commented 6 years ago

You need to pass in the correct model of the printer. It can be found in ePOS2.h

nxd037 commented 5 years ago

could you please explain how to search for printer and save ip address. how to set the printer to print to the ip address.

also correct me if I'm wrong, to pass the model of the printer we should use: cordova.plugins.EpsonPrinter.initializePrinter('EPOS2_TM_T20');