Android的ESC / POS打印通过WiFi

编程入门 行业动态 更新时间:2024-10-28 00:28:59
本文介绍了Android的ESC / POS打印通过WiFi的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我想写一个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.

  • 找到的所有打印机附近使用WiFi。
  • 这将选择一台打印机可能是第一位的。
  • 将文本文件发送到打印机进行打印,并看它是否被成功地打印出来。
  • 我发现了一些API,如 这 。我相信我的问题是类似的 这个帖子

    I found some APIs like this. I believe my problem is similar to this post

    推荐答案

    我一直在寻找这个很长一段时间。几乎没有API的摆在那里,更不用说良好的API。唯一一个我已经得到了迄今的工作是爱普生的Andr​​oid 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

    本文发布于:2023-11-23 14:25:47,感谢您对本站的认可!
    本文链接:https://www.elefans.com/category/jswz/34/1621769.html
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:ESC   Android   WiFi   POS

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!