【问题标题】:Every print starts with an exclamation point using react-native-bluetooth-escpos-printer使用 react-native-bluetooth-escpos-printer 每次打印都以感叹号开头
【发布时间】:2023-02-02 22:51:40
【问题描述】:

使用 react-native-bluetooth-escpos-printer,每次打印都以感叹号开头 使用 @broons/react-native-bluetooth-escpos-printer": "^1.2.0"

这是打印的示例:

image here

【问题讨论】:

  • 请阐明您的具体问题或提供更多详细信息以准确突出您的需求。正如目前所写的那样,很难准确地说出你在问什么。
  • 也许控制代码不完整,例如在尝试执行其中一个 ESC/POS 命令时缺少第一个代码。 ESC !FS !GS !
  • 非常感谢@kunif,我刚刚解决了这个问题。它在 POS_Print_Text 函数的库的 PrinterCommand 文件中,它有一个额外的 GS_ 连接!对于每个文本行的开头,所以我删除了它,现在它工作正常。
  • 例如,请尝试用有关导致问题的编码类型以及如何更改它来解决问题的信息来回答自己。

标签: react-native android-bluetooth thermal-printer escpos


【解决方案1】:

我解决了这个问题。 它在 POS_Print_Text 函数的库的 PrinterCommand 文件中,它有一个额外的 GS_ 连接!对于每个文本行的开头,所以我删除了它,现在它工作正常。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2022-11-14
    • 2015-05-01
    • 1970-01-01
    • 1970-01-01
    • 2013-02-07
    • 2019-01-31
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多