Comments (13)
Hi @JunioJsv ,
The package now supports Bluetooth printers in beta mode.
from esc_pos_printer.
Hi,
I would like to do that but unfortunately I don't have any ESC/POS bluetooth printer to test. So it's nearly impossible to implement it for the moment...
from esc_pos_printer.
I can try to implement but I don't have the necessary knowledge yet, could you give me any tips? where to start
from esc_pos_printer.
I think you could try to use this lib: https://pub.dev/packages/flutter_bluetooth_serial
Create an empty flutter project, include the esc_pos_printer
and flutter_bluetooth_serial
libraries, try to connect to your printer by bluetooth and send a simple command, for example to cut the paper.
Hope it helps!
from esc_pos_printer.
I'm going to close this issue, feel free to reopen it if need
from esc_pos_printer.
@andrey-ushakov Thank you
from esc_pos_printer.
I tried searching for devices and this error occurred, on Lineage OS Android Pie. I will test on another device.
from esc_pos_printer.
2020-01-15 23:34:24.381 28100-28117/juniojsv.bem_servir_comanda I/flutter: Error starting scan.
2020-01-15 23:34:24.441 28100-28117/juniojsv.bem_servir_comanda E/flutter: [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: MissingPluginException(No implementation found for method startScan on channel flutter_bluetooth_basic/methods)
#0 BluetoothManager.scan (package:flutter_bluetooth_basic/src/bluetooth_manager.dart:85:7)
#1 BluetoothManager.startScan (package:flutter_bluetooth_basic/src/bluetooth_manager.dart:116:11)
#2 PrinterBluetoothManager.startScan (package:esc_pos_printer/src/printer_bluetooth_manager.dart:47:23)
#3 AppModel.searchPrinters. (package:bem_servir_comanda/models/app_model.dart:17:25)
#4 Builder.build (package:flutter/src/widgets/basic.dart:6834:41)
#5 StatelessElement.build (package:flutter/src/widgets/framework.dart:4392:28)
#6 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4324:15)
#7 Element.rebuild (package:flutter/src/widgets/framework.dart:4048:5)
#8 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4307:5)
#9 ComponentElement.mount (package:flutter/src/widgets/framework.dart:4302:5)
#10 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3297:14)
#11 Element.updateChild (package:flutter/src/widgets/framework.dart:3091:12)
#12 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4344:16)
#13 Element.rebuild (package:flutter/src/widgets/framework.dart:4048:5)
#14 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4307:5)
#15 ComponentElement.mount (package:flutter/src/widgets/framework.dart:4302:5)
#16 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3297:14)
#17 Element.updateChild (package:flutter/src/widgets/framework.dart:3091:12)
#18 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4344:16)
#19 Element.rebuild (package:flutter/src/widgets/framework.dart:4048:5)
#20 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4307:5)
#21 ComponentElement.mount (package:flutter/src/widgets/framework.dart:4302:5)
#22 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3297:14)
#23 Element.updateChild (package:flutter/src/widgets/framework.dart:3091:12)
#24 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5570:14)
#25 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3297:14)
#26 Element.updateChild (package:flutter/src/widgets/framework.dart:3091:12)
#27 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4344:16)
#28 Element.rebuild (package:flutter/src/widgets/framework.dart:4048:5)
#29 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4307:5)
#30 ComponentElement.mount (package:flutter/src/widgets/framework.dart:4302:5)
#31 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3297:14)
#32 Element.updateChild (package:flutter/src/widgets/framework.dart:3091:12)
#33 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5570:14)
#34 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3297:14)
#35 Element.updateChild (package:flutter/src/widgets/framework.dart:3091:12)
#36 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4344:16)
#37 Element.rebuild (package:flutter/src/widgets/framework.dart:4048:5)
#38 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4307:5)
#39 ComponentElement.mount (package:flutter/src/widgets/framework.dart:4302:5)
#40 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3297:14)
#41 Element.updateChild (package:flutter/src/widgets/framework.dart:3091:12)
#42 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5570:14)
#43 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3297:14)
#44 Element.updateChild (package:flutter/src/wid
from esc_pos_printer.
I try run this code and have this erro
from esc_pos_printer.
Realize now that the bluetooth function only works on iOS for now, right? You had to make that clear in README.md, I found this information in pub.dev Changelog
from esc_pos_printer.
Hi @JunioJsv ,
Thank you for your feedback. It's already clearly stated in README.md :)
BTW, I hope Android support will be added soon as well.
from esc_pos_printer.
Hi,
I've just added Android support :)
Feel free to re-open this issue if need.
from esc_pos_printer.
Hi @JunioJsv ,
Does the library work well for you?
I've created a list of printers tested with this library.
May I ask you to add your printer model into the table?
It will help me to maintain the library and others to choose the right printer!
Thank you!
from esc_pos_printer.
Related Issues (20)
- Please update image plugin to ^4.0.0
- How to use Thermal printer in flutter Web HOT 1
- No option to pass COLOR CODE in style HOT 1
- can't print a long image HOT 2
- Socket has not been initialized when calling rawBytes method
- Line spacing using the ESC 3 <n> command
- Please update image plugin to ^4.0.0 HOT 2
- can you update example ? wifi has depecrated
- [ binding] Print result: Error. Printer connection timeout
- it will also work with Android POS Machine?
- FYI: esc_pos_dart
- issues after flutter upgrade to last. HOT 1
- Issue in install pakage.
- Image printing problem is slow on real device
- lineThrough
- Star Micronics SP700 / SP742 - Ethernet (Column spacing)
- Can we print Marathi language text using esc_pos_printer HOT 1
- The lower bound of "sdk: '>=2.7.0 <3.0.0'" must be 2.12.0 or higher to enable null safety.
- How to monitor printer status? HOT 1
- hr()
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esc_pos_printer.