gmpassos / esc_pos_dart

ESC/POS thermal WiFi printer support for Dart (non-Flutter dependent).
Other
2 stars 3 forks source link

Check status of connected cash-drawer (new feature?) #5

Open jimodelid opened 5 months ago

jimodelid commented 5 months ago

I see from the codebase that you've got drawer commands. Is that solely to open the cash-drawer based of the original author commands or can it also be used to poll the status of the cash-drawer connected to the printer?

I'm currently developing a software for a company in Norway where they have rules regarding inputs and sales if the drawer is open so I would need a way of polling the status of the cash drawer to put the entire application on hold whilst the drawer is open.

If it's not possible using this package, do you think it would be a simple task adding it to the package?