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

Unable to connect to MTP-II #53

Open
zejtin opened this issue Aug 2, 2023 · 7 comments
Open

Unable to connect to MTP-II #53

zejtin opened this issue Aug 2, 2023 · 7 comments

Comments

@zejtin
Copy link

zejtin commented Aug 2, 2023

Hello!

I have an MTP-II printer which should be fine. Name on bluetooth is MTP-II_BC6A
I am trying to scan it with tpScane((char *)"MTP-II_BC6A", 15); to no avail, tpScan returns false but printer changes led color to blue like when it is connected when running tpScan.

Any info on this?

Thanks in advance

@MYCAMEL222
Copy link

use library version 1.1.2. It should work when you scan tpScan((char *)"MTP-II_BC6A", 15);

@zejtin
Copy link
Author

zejtin commented Aug 3, 2023

Tried it just now, it still doesn't find it, difference with 1.1.2 is printer doesn't show there is connection as with the latest one

@MYCAMEL222
Copy link

Your code line in the above post reads "tpScane((char *)"MTP-II_BC6A", 15);".........It should be "tpScan....".

@zejtin
Copy link
Author

zejtin commented Aug 3, 2023

My bad on that, it is tpScan otherwise it wouldn't compile

@MYCAMEL222
Copy link

I ended up writing my own code without the Thermal_Printer library. I used arduinoBLE library and scanned for UUID. Everything works fine that way, but you'll have to hard code the esc/pos commands.

Sorry I can't help more.

@zejtin
Copy link
Author

zejtin commented Aug 4, 2023

Do you maybe have some repo or example how you did it?

@controllercustom
Copy link

To add a new printer name, truncate it to 9 chars and add it to szPrinterIDs[].

tpFindPrinterName() truncates the advertised printer name to 9 characters or less before looking for a match in szPrinterIDs.

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

3 participants