Coder Social home page Coder Social logo

sebleprinter's Introduction

SEBLEPrinter

iOS 蓝牙打印机库,侧重于打印部分,弱化蓝牙操作。
使用佳博 Gp-58MBIII和GP58MBIII和芯烨 XPrinter某型号测试通过。
另一个更灵活的演示工程:HLBluetoothDemo

更新

修复打印乱码,导致打印机脱机再次打印没有反应的重大Bug。(2016-06-14)
删除了鸡肋的预览效果图。
demo中已经给出分多次打印的示例代码。

效果图

小票

说明

与上一个蓝牙和打印demo中不同。 因为连接蓝牙打印机的功能比较单一,重点是往蓝牙设备中写入数据,而扫描服务、特性、描述以及读取特性值,这些使用者根本不care。 所以这个库的使用也更简单一些,所有的功能可以只看SEPrinterManager即可。

如果你有更好的建议或者疑问,欢迎加群:552735579。

sebleprinter's People

Contributors

haley-wong avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

sebleprinter's Issues

二维码乱码

你好,请问智谷联5804蓝牙打印机打印图片或者二维码乱码,请问有没有什么解决办法

[CoreBluetooth] XPC connection invalid

多次蓝牙打开关闭,然后调用扫描方法,会提示这个错误:[CoreBluetooth] XPC connection invalid,然后就是扫描不到或者是连接不上,网上说是苹果的bug,作者有没有遇到

部分打印机乱码

使用demo,同一型号的不同打印机,有的正常,有的乱码。找不出乱码规律。
机型:芯烨的58IIH
1
2

搜索不到打印机

你好,之前使用你的sdk在品牌为芯烨的打印机上可以正常使用,除了打印二维码会有点卡机现象。现在公司重新采购了据说更佳的品牌为思普瑞特的打印机(安卓端已在使用),却发现iOS死活都扫描不到这个打印机,请问一般出现这种情况是什么问题呢

根据UUID连接

在仅知道当前设备的identifier的情况下如何根据这个封装的sdk连接蓝牙打印机?new了一个CBPeripheral对象,不能赋值它的identifier属性,提示"只读",请问这个该怎么解决啊

方法不执行

didFailToConnectPeripheral 这个方法好像没有调用过,想问一下它的调用时机

直接关机

佳博pt-260型号的设备,打印直接就关机

图片打印不出来

想要打印二维码来着,

  • (void)appendQRCodeWithInfo:(NSString *)info
    调用了此方法,打印机打到这里就不动了。

然后作者的添加图片代码我取消注释
[printer appendImage:[UIImage imageNamed:@"ico180"] alignment:HLTextAlignmentCenter maxWidth:300];
貌似还是打印不出来,不知道是打印机的问题还是什么??

感谢作者做出这个强大的类库,希望一起进步

Cannot print Image

Please help me, when i print image ,
I used

[printer appendImage:[UIImage imageNamed:@"someimage"] alignment:HLTextAlignmentCenter maxWidth:70];

... please help

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.