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.
 
 
 
 
meng-fucius 2dce9eaf2a
Merge pull request #1 from meng-fucius/master
3 years ago
.idea no message 3 years ago
android 修复文字错误 3 years ago
example 添加ios sdk 3 years ago
ios 添加ios sdk 3 years ago
lib 添加ios sdk 3 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 build 3 years ago
pubspec.lock build 3 years ago
pubspec.yaml build 3 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();