Printooth icon indicating copy to clipboard operation
Printooth copied to clipboard

How to use Printooth.setPrinter

Open FelixVincent99 opened this issue 4 years ago • 1 comments

Basically, i wanted to use more than one printer. isit possible? and how do i determine which printer is paired to the Printooth. I couldn't find any documentation out there that are saving printer name, if any, can you provide one. Thanks

FelixVincent99 avatar Jul 10 '20 15:07 FelixVincent99

Yes, this is possible, @FelixVincent99. You can use this code to get what you want:

var printer1 = PairedPrinter(name, address)  
var printer2 = PairedPrinter(name, address)  
Printooth.printer(printer1).print(printables)  
Printooth.printer(printer2).print(printables)

You can use Printooth.getPairedPrinter() to get the actual printer =D

RaRoPe avatar Nov 05 '20 21:11 RaRoPe