Bluetooth Print Plus is a Bluetooth plugin used to print thermal printers in Flutter, a new mobile SDK to help developers build bluetooth thermal printer apps for iOS and Android.
Important, important, important. First, you need to run the demo to confirm the printer command type ! ! !
now support tspl/tsc、cpcl、esc pos.
If this plugin is helpful to you, please give it a like, Thanks.
Buy Me A Coffee/请我喝杯咖啡
Plan
Version
plan
1.1.x
blue and tsc command, esc print image command
1.5.x
support cpcl command
2.x.x
improve esc command
3.x.x
support zpl command
Features
Android
iOS
Description
scan
:white_check_mark:
:white_check_mark:
Starts a scan for Bluetooth Low Energy devices.
connect
:white_check_mark:
:white_check_mark:
Establishes a connection to the device.
disconnect
:white_check_mark:
:white_check_mark:
Cancels an active or pending connection to the device.
<key>NSBluetoothAlwaysUsageDescription</key>
<string>Need BLE permission</string>
<key>NSBluetoothPeripheralUsageDescription</key>
<string>Need BLE permission</string>
error:'State restoration of CBCentralManager is only allowed for applications that have specified the "bluetooth-central" background mode'
info.plist add:
<key>NSBluetoothAlwaysUsageDescription</key>
<string>Allow App use bluetooth?</string><key>NSBluetoothPeripheralUsageDescription</key><string>Allow App use bluetooth?</string><key>UIBackgroundModes</key><array><string>bluetooth-central</string><string>bluetooth-peripheral</string></array>