You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't really see where you get the data you send over to the printer. If the data you are trying to write is what is returned from the Printer.qr method that will not work as the Printer object itself is returned.
You need to call all the printer methods you want (only qr in your case here I guess) and then call flush which will give you a UInt8Array that you can write to your bluetooth device.
If you want to use this library the easiest way to print to a new device is to create a new sub class of Adapter and then pass that as the parameter to the constructor for the Printer object.
I have adapted your code to my code to be able to print a qr by a bluetooth printer using esc / pos command on ionic 4
This is the method that sends the data to the ionic library
Print but not the QR code only many characters in Japanese
I was able to print pure text using the hexadecimal code directly
For example
do you have any idea
The text was updated successfully, but these errors were encountered: