我想写一个Android应用程序,这将做以下步骤,我要你帮我找到合适的API来他们加快这一进程。我将要使用的打印机支持ESC / POS协议。
I want to write an Android app which will do following in steps and I want you to help me find right APIs for them to speed up the process. The printer I am going to use supports ESC/POS protocols.
我发现了一些API,如 这 。我相信我的问题是类似的 这个帖子
I found some APIs like this. I believe my problem is similar to this post
推荐答案我一直在寻找这个很长一段时间。几乎没有API的摆在那里,更不用说良好的API。唯一一个我已经得到了迄今的工作是爱普生的Android SDK 。
I have been looking into this for a long time. There are almost no APIs out there, much less good APIs. The only one I have gotten to work so far is the Epson Android SDK.
这支持了许多WiFi和蓝牙Epson打印机。随着code短短几行,你可以找到你想要打印的打印机的IP地址,然后添加行打印的文档。他们也有一个很好的示例应用程序,其中的每一种操作,你可能想要做的。
This supports a number of wifi and bluetooth epson printers. With just a few lines of code, you can find the IP address of the printer you want to print with, and then add lines to the document to print. They also have a good sample app that has every kind of operation you might want to do.
您可以手动编写ESC命令,但它是非常complecated。这就是为什么像被开发 JAVAPOS,试图抽象这些细节了。然而,这里是爱普生手册ESC命令
You can manually write ESC commands, but it is very complecated. That is why things like JavaPos were developed, to attempt to abstract these details away. However, here is an Epson manual for ESC commands
更多推荐
Android的ESC / POS打印通过WiFi
发布评论