Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use embedded POS printer ? #237

Open
ThomasCarltonInPerson opened this issue Jul 21, 2023 · 1 comment
Open

How to use embedded POS printer ? #237

ThomasCarltonInPerson opened this issue Jul 21, 2023 · 1 comment

Comments

@ThomasCarltonInPerson
Copy link

ThomasCarltonInPerson commented Jul 21, 2023

Hi team,

I have a POS Terminal with an embedded printer. The printer is shown among the blutooth devices.

On the terminal, when I click device details, I get :

Device's Bluetooth address : 66:11:22:33:44:55

Does anyone know how to use the library to connect to the printer please ?

In the documentation there is :

    //USB, Bluetooth, or Serial
    //var printer = new SerialPrinter(portName: "COM5", baudRate: 115200);

But I don't have any port name to use that. I have the entire bluetooth adress ?

Thank you in advance for your help.

Cheers,

@igorocampos
Copy link
Collaborator

igorocampos commented Sep 1, 2023

Hi Thomas, you can open a connection with that bluetooth port and send all bytes generated by this library directly to the port, and the printer shall print it for you.

In #51 you can find an example of how you could accomplish this. And there are other related issues attached to that as well with more use cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants