From a091c50a31af9ab1098fb828c8ad6015c25b5ded Mon Sep 17 00:00:00 2001 From: Alexey Yushin Date: Thu, 4 Jun 2020 11:15:14 +0200 Subject: [PATCH 1/2] make selectedPrinter and isConnected public it might be useful to know if we are currently connected to a printer and which one --- lib/src/printer_bluetooth_manager.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/src/printer_bluetooth_manager.dart b/lib/src/printer_bluetooth_manager.dart index ba78b32..3905012 100644 --- a/lib/src/printer_bluetooth_manager.dart +++ b/lib/src/printer_bluetooth_manager.dart @@ -32,6 +32,9 @@ class PrinterBluetoothManager { StreamSubscription _isScanningSubscription; PrinterBluetooth _selectedPrinter; + get selectedPrinter => _selectedPrinter; + get isConnected => _isConnected; + final BehaviorSubject _isScanning = BehaviorSubject.seeded(false); Stream get isScanningStream => _isScanning.stream; From 7c60ef4265df4882a6b1d414b4e2f9b0f15f724a Mon Sep 17 00:00:00 2001 From: Alexey Yushin Date: Tue, 16 Jun 2020 23:11:40 +0200 Subject: [PATCH 2/2] printer issues --- printers.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/printers.md b/printers.md index b274f20..fb15d11 100644 --- a/printers.md +++ b/printers.md @@ -13,3 +13,5 @@ Thank you for your contribution! | [Seiko RP-D10](https://www.sii.co.jp/sps/eg/product/unit/rpd_series.html) | | | [Printer not listed during scan](https://github.com/andrey-ushakov/esc_pos_printer/issues/48) | |POS-5802DD (Kkmoon)|58mm|0.2.2|`PosImageFn.bitImageRaster`: align left only ;
`PosImageFn.graphics`: doesn't work ;
`Ticket.image`: works ;
everything else works (Tested on iOS) | | MHT-P8001, MHT-P26, Jepod JP-81LYA ([#1](https://github.com/andrey-ushakov/esc_pos_bluetooth/issues/1#issuecomment-597723277)) |80mm|0.2.2|All 3 image printing methods doens't work ;
bold text: No ;
westEur code page: No (Tested on iOS) | +| HPRT MPT-II | 58mm | 0.2.8 | No issues | +| TSP 650 II | 80mm | 0.2.8 | Can't pair on IOS, won't print reverse and images on Android \ No newline at end of file