star-micronics / react-native-star-io10

react-native-star-io10 is a library for supporting application development for Star Micronics devices.
Other
83 stars 54 forks source link

Is printing on multiple connected printers from one device supported? #65

Closed fragilehm closed 1 year ago

fragilehm commented 2 years ago

Description

I have a case where multiple printers can be connected to one device, could be any interface. Say I have 5 printers connected, 2 Bluetooth, and 3 LAN printers to the same device, and I want to send a print command to all printers at the same time, will there be collisions? Do I have to disconnect from a printer before connecting and printing on another one, or should prints be done sequentially on each printer?

fragilehm commented 2 years ago

@gare-bear you have an idea?

gare-bear commented 2 years ago

hi @fragilehm,

I haven't tried that many printers at once, but it should work assuming you have a printer object for each printer.

It's worth mentioning when you open a connection to the printer using printer.open(), the device holds that connection. Other devices won't be able to connect to the printer(s) until you release the connection with printer.close()

I'd expect a one device scenario to work as expected, but additional devices will run into issues depending on how long you keep the printer connection active.

If your use-case requires that you share printers across multiple devices, then close the connection immediately after printing so other devices can print too. Expect errors, while attempting to connect to a printer that is in use.

bandit-ibayashi commented 1 year ago

This Issue is closed because it works for us and has not moved for a period of time.