Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose mapToEscCommand and mapToTscCommand to bypass Bluetooth operations #96

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

xni06
Copy link
Contributor

@xni06 xni06 commented Feb 2, 2022

Currently it is not possible to generate the raw data required to send to the device without having first established a connection.

As I am unable to connect to a BLE (type 2) device, I am now using flutter_blue to successfully establish the connection instead. I then call mapToEscCommand to create the raw data before passing it to the device.

This eliminates the need to convert any existing receipt creation logic using LineText with esc_pos_utils

The longterm goal is to migrate fully to esc_pos_utils using an adapter - watch this space

Rhisiart ap Gwilym added 2 commits February 5, 2022 10:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant