phonegap-bluetooth-plugin icon indicating copy to clipboard operation
phonegap-bluetooth-plugin copied to clipboard

How to send ESC Commands?

Open danicarla opened this issue 9 years ago • 8 comments

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 !

danicarla avatar Mar 28 '16 12:03 danicarla

Hi,

I've no idea. Sorry. 😓

tanelih avatar Apr 02 '16 07:04 tanelih

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

danicarla avatar Apr 05 '16 15:04 danicarla

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.

tanelih avatar Apr 05 '16 15:04 tanelih

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"

danicarla avatar Apr 08 '16 19:04 danicarla

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

dannygunawan avatar Apr 17 '16 16:04 dannygunawan

@dannygunawan Sorry.. Unfortunately you still can not print

danicarla avatar May 09 '16 14:05 danicarla

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

dannygunawan avatar May 11 '16 06:05 dannygunawan

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

danicarla avatar May 12 '16 18:05 danicarla