infoxicator / react-native-star-prnt

React-Native bridge to communicate with Star Micronics Bluetooth/LAN Printers
MIT License
67 stars 65 forks source link

Supporting emulation of any STAR printer(in documentation list) #30

Closed aysfzaicmu closed 5 years ago

aysfzaicmu commented 5 years ago

In order to give the flexibility of connecting to any Star printer, whether the emulation is StarPRNT or StarGraphic or ESCPOS, we would need to be able to get a model's emulation from a function like portDiscovery or connect where we can get the emulation of a specific model and accordingly input a bitmap or string to the specific printer. It does not seem like we are getting the emulation from these functions so how would do support different star printer models?

infoxicator commented 5 years ago

Hi @aysfzaicmu take a look at the StarSDK documentation, you will find the printer list and their emulation as well as what commands are supported by each printer/emulation. After finding out what emulation your printer uses, then just pass it as a parameter to the connect or print commands as described on the documentation of this plugin