bluetooth_print_plus ist ein Flutter-Plugin für Bluetooth-Thermoprinter, unterstützt Android und iOS und bietet Unterstützung für TSPL/TSC, CPCL und ESC/POS.
Aus öffentlichen Paketdaten erstellte Orientierung.
bluetooth_print_plus ist ein Flutter-Plugin, das die Kommunikation mit Bluetooth-Thermaldruckern unter Android und iOS ermöglicht. Es unterstützt mehrere Druckersprachen wie TSPL/TSC, CPCL und ESC/POS und eignet sich daher ideal zum Drucken von Quittungen, Etiketten und Tickets. Das Paket bietet eine einfache API zum Senden von Druckbefehlen und Verwaltung von Geräteverbindungen. Außerdem bietet es plattformübergreifende Kompatibilität mit Web, macOS und Linux, wobei die Funktionalität auf nicht-mobilen Plattformen jedoch begrenzt sein kann. Ideal für Anwendungen im Einzelhandel, Gastgewerbe und Logistik, die zuverlässige mobile Druckfunktion erfordern.
Entwickler, die plattformübergreifende Druckfunktionen erstellen
Hinweise
Eingeschränkte Funktionalität auf nicht-Android/iOS-Plattformen
Erforderliche Berechtigungen für Bluetooth-Zugriff
Drucker-spezifische Befehlssyntax kann Tests erfordern
Nicht alle Druckermodelle unterstützen alle Sprachen vollständig
Die Webunterstützung kann eingeschränkte Bluetooth-Funktionen aufweisen
Original-README
Originaler README-Schnappschuss aus dem verknüpften Quell-Repository. Aktuelle Inhalte finden Sie im Repository.
Bluetooth Print Plus
Introduction
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>