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 send ESC Commands? #40

Open
danicarla opened this issue Mar 28, 2016 · 8 comments
Open

How to send ESC Commands? #40

danicarla opened this issue Mar 28, 2016 · 8 comments

Comments

@danicarla
Copy link

Hi....

I know that my question is not a phonegap-bluetooth-plugin
But I believe you can help me .

I would like to know how to send ESC Commands to a printer
Any feedback is appreciated!

Tks !

@tanelih
Copy link
Owner

tanelih commented Apr 2, 2016

Hi,

I've no idea. Sorry. 😓

@danicarla
Copy link
Author

I appreciate the help! :)

The support my printer said I'm need to send the command as HEX string, not plain text.
But I have no idea how to do it

@tanelih
Copy link
Owner

tanelih commented Apr 5, 2016

You'll need to convert the ESC string to a hexadecimal representation. You can try an online tool like this or just do the conversion in your code.

@danicarla
Copy link
Author

Great!!! I think I'm evolving.

I had already tried that way, but even so it prints the hex code...
I'm send the HEX code in an application developed by the company that distributes the printer and worked correctly ...

But in my application does not work :(

I 'm thinking I need to add some code at the beginning , to inform you that will be sent "HEX string" instead of "Plain Text"

@dannygunawan
Copy link

hi @danicarla
have you found any solution for this issue?

@danicarla
Copy link
Author

@dannygunawan
Sorry.. Unfortunately you still can not print

@dannygunawan
Copy link

@danicarla Just in case you still need this feature, I found another plugin as an alternative. [https://github.com/don/BluetoothSerial]

@danicarla
Copy link
Author

@dannygunawan Great!!!
When I have time.. I will test
Tks!

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