You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
章文轩 3d16fd8ee1
修改关闭链接,优化连接蓝牙
2 years ago
.idea 添加打印机筛选,删除权限插件 2 years ago
android 修改关闭链接,优化连接蓝牙 2 years ago
example 修改关闭链接,优化连接蓝牙 2 years ago
ios 添加ios sdk 3 years ago
lib 修改关闭链接,优化连接蓝牙 2 years ago
test build 3 years ago
.gitignore build 3 years ago
.metadata build 3 years ago
CHANGELOG.md build 3 years ago
LICENSE build 3 years ago
README.md 模板修改 3 years ago
analysis_options.yaml build 3 years ago
hy_printer.iml 适配新打印机 2 years ago
pubspec.lock 修复打印bug 2 years ago
pubspec.yaml 添加打印机筛选,删除权限插件 2 years ago

README.md

hy_printer

汉印打印机插件 仅支持安卓

在build.gradle中 需要把minSdkVersion 改为19 权限配置中加入


    <uses-permission android:name="android.permission.BLUETOOTH" />
    <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>

##扫描设备

HyPrinter.getDevices();

##连接设备

HyPrinter.connect();

##打印安速面单(模版固定,暂不支持更改)

HyPrinter.printAsOrder();

##打印机状态

HyPrinter.getStatus();