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.
张萌
fe3edb17df
|
3 years ago | |
---|---|---|
.idea | 3 years ago | |
android | 3 years ago | |
example | 3 years ago | |
ios | 3 years ago | |
lib | 3 years ago | |
test | 3 years ago | |
.gitignore | 3 years ago | |
.metadata | 3 years ago | |
CHANGELOG.md | 3 years ago | |
LICENSE | 3 years ago | |
README.md | 3 years ago | |
analysis_options.yaml | 3 years ago | |
hy_printer.iml | 3 years ago | |
pubspec.lock | 3 years ago | |
pubspec.yaml | 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();